Highlighting relied on the syntax-highlighting package, so removing it left every file uncoloured. The 462 definitions now live in assets/syntax and are compressed into the binary at build time, unpacked per language when used. User .xml files still add to or replace them, and the licence each file declares is recorded in assets/syntax/LICENSES.md. Also moves files to the trash without needing gio. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 line
No EOL
17 KiB
XML
1 line
No EOL
17 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="JavaScript React (JSX)" alternativeNames="JSX" version="11" kateversion="5.62" section="Scripts" indenter="cstyle" priority="9" extensions="*.jsx" mimetype="text/jsx;text/x-jsx;application/jsx;application/x-jsx;" author="Nibaldo González ([email protected])" license="MIT"><highlighting><contexts><context name="Shebang" attribute="Normal Text" fallthroughContext="#pop!Normal" lineEmptyContext="#pop!Normal" lineEndContext="#pop!Normal"><StringDetect String="#!" attribute="Comment" context="ShebangLine" column="0"/></context><context name="ValidTag" attribute="Normal Text" fallthroughContext="#pop"><RegExpr String="\s+(?=<|/\*)" attribute="Normal Text"/><IncludeRules context="FindTags"/><IncludeRules context="AllComments"/></context><context name="AllComments" attribute="Normal Text"><IncludeRules context="FindComments##JavaScript"/></context><context name="ComponentTag" attribute="Normal Text"><StringDetect String="/>" attribute="Component Tag" context="#pop" endRegion="ComponentElement"/><DetectChar char=">" attribute="Component Tag" context="#pop!ComponentTagContent"/><IncludeRules context="DefaultTag"/></context><context name="DefaultTypeInsideTag" attribute="Component Tag"><DetectChar char="<" attribute="Symbol" context="TypeInsideTag-AngleBracket"/><DetectChar char="{" attribute="Symbol" context="TypeInsideTag-CurlyBracket"/><DetectChar char="[" attribute="Symbol" context="TypeInsideTag-SquareBracket"/><DetectChar char="(" attribute="Symbol" context="TypeInsideTag-RoundBracket"/><IncludeRules context="AllComments"/></context><context name="Normal" attribute="Normal Text"><IncludeRules context="React"/><IncludeRules context="Normal##JavaScript"/></context><context name="React" attribute="Normal Text"><RegExpr String="<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)" attribute="Normal Text" context="ValidTag" firstNonSpace="1" lookAhead="1"/><RegExpr String="\b(?:return|await)\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="ControlFlow" context="ValidTag"/><RegExpr String="\b(?:default)\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="Module" context="ValidTag"/><RegExpr String="\b(?:yield)\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="Reserved" context="ValidTag"/><RegExpr String="\=>\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="Special Operators" context="ValidTag"/><RegExpr String="(?:[,\=>:\*\?]|&&|\|\|)\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="Symbol" context="ValidTag"/><RegExpr String="\[\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="Normal Text" context="ValidTag" beginRegion="List"/><RegExpr String="\(\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="Normal Text" context="ValidTag"/><DetectChar char="{" attribute="Normal Text" context="Object-BeforeTag" beginRegion="Brace"/><RegExpr String="<\s*>\s*(?=<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)|/\*)" attribute="Symbol" context="ValidTag"/><StringDetect String="/*" attribute="Comment" context="ValidTag" firstNonSpace="1" lookAhead="1"/><IncludeRules context="FindDeclarationsWithNoTags"/><IncludeRules context="OverwriteJavaScript"/></context><context name="ComponentTagFindType" attribute="Normal Text" fallthroughContext="#pop!ComponentTag" lineEndContext="#pop!ComponentTag"><DetectChar char="<" attribute="Symbol" context="#pop!TypeInsideTag"/></context><context name="ElementTagContent" attribute="Tag Content Text"><RegExpr String="</\s*>" attribute="Element Tag" context="#pop" endRegion="Element"/><RegExpr String="</\s*((?:[a-z][a-z\d]*:)?[a-z][a-z\d]*|(?=[A-Z_\$]))" attribute="Element Tag" context="ElementTagEnd"/><IncludeRules context="DefaultTagContent"/></context><context name="FindEntityRefs" attribute="Normal Text"><RegExpr String="&(?:[a-zA-Z\d]+|#\d+|#x[a-fA-F\d]+);" attribute="EntityRef"/></context><context name="Object" attribute="Normal Text"><DetectChar char="}" attribute="Normal Text" context="#pop" endRegion="Brace"/><IncludeRules context="React"/><RegExpr String="\?(?=[^\{\}]*[a-zA-Z_$[:^ascii:]][\w$[:^ascii:]]*\s*\:)" attribute="Symbol" context="ConditionalExpression"/><IncludeRules context="Object##JavaScript"/></context><context name="VarDeclaration" attribute="Normal Text" fallthroughContext="#pop"><DetectSpaces/><DetectChar char=":" attribute="Symbol" context="#pop!NoTag"/><RegExpr String="[a-zA-Z_$[:^ascii:]][\w$[:^ascii:]]*(?=\s*(?:[\?!]\s*)?:)" attribute="Normal Text"/><AnyChar String="?!" attribute="Symbol"/><IncludeRules context="AllComments"/></context><context name="DefaultTag" attribute="Normal Text"><RegExpr String="(?:(?:\b[a-zA-Z_\$]|[^[:ascii:]])(?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?(?:\b[a-zA-Z_\$]|[^[:ascii:]])(?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?" attribute="Attribute" context="Attribute"/><IncludeRules context="FindEvaluatedCode"/><IncludeRules context="AllComments"/><RegExpr String="\S+(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|\S" attribute="Error"/></context><context name="DefaultTagContent" attribute="Tag Content Text"><IncludeRules context="FindTagsInTagContent"/><IncludeRules context="FindEntityRefs"/><IncludeRules context="FindEvaluatedCode"/><DetectChar char="<" attribute="Error"/></context><context name="ElementTag" attribute="Normal Text"><StringDetect String="/>" attribute="Element Tag" context="#pop" endRegion="Element"/><DetectChar char=">" attribute="Element Tag" context="#pop!ElementTagContent"/><IncludeRules context="DefaultTag"/></context><context name="ElementTagFindType" attribute="Normal Text" fallthroughContext="#pop!ElementTag" lineEndContext="#pop!ElementTag"><DetectChar char="<" attribute="Symbol" context="#pop!TypeInsideTag"/></context><context name="FindEndTag" attribute="Normal Text"><StringDetect String="/>" context="#pop" lookAhead="1"/><DetectChar char=">" context="#pop" lookAhead="1"/></context><context name="FindEvaluatedCode" attribute="Normal Text"><DetectChar char="{" attribute="Code Brackets" context="EvaluatedCode-BeforeTag" beginRegion="Code"/></context><context name="NoTag" attribute="Normal Text" fallthroughContext="#pop"><DetectSpaces/><IncludeRules context="AllComments"/><DetectChar char="<" attribute="Symbol" context="#pop"/><RegExpr String="\(\s*(?=<)" attribute="Normal Text"/><RegExpr String="\[\s*(?=<)" attribute="Normal Text" beginRegion="List"/><RegExpr String="\{\s*<(\s*/(?![\*/]))?" attribute="Normal Text" context="#pop!Object" beginRegion="Brace"/></context><context name="TypeInsideTag" attribute="Component Tag"><DetectChar char=">" attribute="Symbol" context="#pop!ComponentTag"/><IncludeRules context="DefaultTypeInsideTag"/></context><context name="Attribute" attribute="Normal Text"><RegExpr String="\=(?=\s*/?>)" attribute="Error" context="#pop"/><DetectChar char="=" attribute="Symbol" context="#pop!Value"/><IncludeRules context="FindEndTag"/><DetectChar char="{" context="#pop" lookAhead="1"/><IncludeRules context="AllComments"/><RegExpr String="(?:(?:\b[a-zA-Z_\$]|[^[:ascii:]])(?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?(?:\b[a-zA-Z_\$]|[^[:ascii:]])(?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?" attribute="Attribute"/><RegExpr String="\S+(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|\S" attribute="Error"/></context><context name="ClassDeclaration" attribute="Normal Text"><DetectChar char="{" attribute="Normal Text" context="#pop!ClassDeclarationContent" beginRegion="Brace"/><DetectChar char="}" context="#pop" lookAhead="1"/><IncludeRules context="Normal##JavaScript"/></context><context name="ClassDeclarationContent" attribute="Normal Text"><DetectChar char="}" attribute="Normal Text" context="#pop" endRegion="Brace"/><DetectChar char=":" attribute="Symbol" context="NoTag"/><IncludeRules context="Object"/></context><context name="ComponentTagContent" attribute="Tag Content Text"><RegExpr String="</\s*>" attribute="Component Tag" context="#pop" endRegion="ComponentElement"/><RegExpr String="</\s*(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?" attribute="Component Tag" context="ComponentTagEnd"/><IncludeRules context="DefaultTagContent"/></context><context name="ComponentTagEnd" attribute="Normal Text"><DetectChar char=">" attribute="Component Tag" context="#pop#pop" endRegion="ComponentElement"/><RegExpr String="\S" attribute="Error"/></context><context name="ComponentTagNonASCII" attribute="Normal Text" fallthroughContext="#pop!ComponentTag" lineEndContext="#pop!ComponentTag"><RegExpr String="(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?" attribute="Component Tag" context="#pop!ComponentTagFindType"/></context><context name="ConditionalExpression" attribute="Normal Text" lineEndContext="#pop"><DetectChar char=":" attribute="Symbol" context="#pop"/><IncludeRules context="React"/><IncludeRules context="ConditionalExpression##JavaScript"/></context><context name="ElementTagEnd" attribute="Normal Text"><DetectChar char=">" attribute="Element Tag" context="#pop#pop" endRegion="Element"/><RegExpr String="\S" attribute="Error"/></context><context name="EvaluatedCode" attribute="Normal Text"><DetectChar char="}" attribute="Code Brackets" context="#pop" endRegion="Code"/><IncludeRules context="Normal"/></context><context name="EvaluatedCode-BeforeTag" attribute="Normal Text" fallthroughContext="#pop!EvaluatedCode"><IncludeRules context="ValidTag"/></context><context name="FindDeclarationsWithNoTags" attribute="Normal Text"><WordDetect String="interface" attribute="Reserved" context="InterfaceDeclaration"/><WordDetect String="class" attribute="Reserved" context="ClassDeclaration"/><WordDetect String="let" attribute="Reserved" context="VarDeclaration"/><WordDetect String="var" attribute="Keyword" context="VarDeclaration"/><WordDetect String="const" attribute="Keyword" context="VarDeclaration"/></context><context name="FindTags" attribute="Normal Text"><RegExpr String="<(?=\s*(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?(?:(<(?:\s*/\*(?:[^\*]|\*+[^/\*])*\*+/)*)?(?:\s*/\*(?:[^\*]|\*+[^/\*])*\*+/)*\s*[\?,]|(?:/\*(?:[^\*]|\*+[^/\*])*\*+/)+(?![\s<>]|/[>/\*]|$|[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|\{)))" attribute="Symbol" context="#pop"/><RegExpr String="<\s*>" attribute="Element Tag" context="ElementTagContent" beginRegion="Element"/><RegExpr String="<\s*(?:[a-z][a-z\d]*:)?[a-z][a-z\d]*(?=[\s<>]|/[>/\*]|$)" attribute="Element Tag" context="ElementTagFindType" beginRegion="Element"/><RegExpr String="<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)(?=[\s<>]|/[>/\*]|$)" attribute="Component Tag" context="ComponentTagFindType" beginRegion="ComponentElement"/><DetectChar char="<" attribute="Symbol" context="#pop"/></context><context name="FindTagsInTagContent" attribute="Normal Text"><RegExpr String="<\s*>" attribute="Element Tag" context="ElementTagContent" beginRegion="Element"/><RegExpr String="<\s*(?=(?:[a-z][a-z\d]*:)?(?:[a-z][a-z\d]*)?[^[:ascii:]])" attribute="Component Tag" context="ComponentTagNonASCII" beginRegion="ComponentElement"/><RegExpr String="<\s*(?:[a-z][a-z\d]*:)?[a-z][a-z\d]*(?=[^\w\$\-\.:]|$|[\-\.]+(?:[^\w\$\-\.]|$)|:(?:[^a-zA-Z_\$]|$))" attribute="Element Tag" context="ElementTagFindType" beginRegion="Element"/><RegExpr String="<\s*(?:(?:[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?:)?[a-zA-Z_\$[:^ascii:]](?:[\w\$\-\.[:^ascii:]]*[\w\$[:^ascii:]])?|>)" attribute="Component Tag" context="ComponentTagFindType" beginRegion="ComponentElement"/></context><context name="InterfaceContentDeclaration" attribute="Normal Text"><DetectChar char="}" attribute="Normal Text" context="#pop" endRegion="Brace"/><IncludeRules context="Object##JavaScript"/></context><context name="InterfaceDeclaration" attribute="Normal Text"><DetectChar char="{" attribute="Normal Text" context="#pop!InterfaceContentDeclaration" beginRegion="Brace"/><DetectChar char="}" context="#pop" lookAhead="1"/><IncludeRules context="Normal##JavaScript"/></context><context name="Object-BeforeTag" attribute="Normal Text" fallthroughContext="#pop!Object"><IncludeRules context="ValidTag"/></context><context name="OverwriteJavaScript" attribute="Normal Text"><DetectChar char="`" attribute="Template" context="Template" beginRegion="Template"/><DetectChar char="[" attribute="Normal Text" beginRegion="List"/><DetectChar char="]" attribute="Normal Text" context="NoRegExp##JavaScript" endRegion="List"/></context><context name="ShebangLine" attribute="Comment" lineEndContext="#pop#pop!Normal"/><context name="Substitution" attribute="Normal Text"><DetectChar char="}" attribute="Substitution" context="#pop"/><IncludeRules context="React"/><IncludeRules context="Substitution##JavaScript"/></context><context name="Substitution-BeforeTag" attribute="Normal Text" fallthroughContext="#pop!Substitution"><IncludeRules context="ValidTag"/></context><context name="Template" attribute="Template"><DetectChar char="`" attribute="Template" context="RegExpAfterString##JavaScript" endRegion="Template"/><StringDetect String="${" attribute="Substitution" context="Substitution-BeforeTag"/><IncludeRules context="Template##JavaScript"/></context><context name="TypeInsideTag-AngleBracket" attribute="Component Tag"><DetectChar char=">" attribute="Symbol" context="#pop"/><IncludeRules context="DefaultTypeInsideTag"/></context><context name="TypeInsideTag-CurlyBracket" attribute="Component Tag"><DetectChar char="}" attribute="Symbol" context="#pop"/><IncludeRules context="DefaultTypeInsideTag"/></context><context name="TypeInsideTag-RoundBracket" attribute="Component Tag"><DetectChar char=")" attribute="Symbol" context="#pop"/><IncludeRules context="DefaultTypeInsideTag"/></context><context name="TypeInsideTag-SquareBracket" attribute="Component Tag"><DetectChar char="]" attribute="Symbol" context="#pop"/><IncludeRules context="DefaultTypeInsideTag"/></context><context name="Value" attribute="Normal Text"><DetectChar char='"' attribute="Value" context="#pop!ValueDQ"/><DetectChar char="'" attribute="Value" context="#pop!ValueSQ"/><DetectChar char="{" context="#pop" lookAhead="1"/><IncludeRules context="FindEndTag"/><IncludeRules context="AllComments"/><RegExpr String="\S" attribute="Error"/></context><context name="ValueDQ" attribute="Value"><DetectChar char='"' attribute="Value" context="#pop"/><IncludeRules context="FindEntityRefs"/></context><context name="ValueSQ" attribute="Value"><DetectChar char="'" attribute="Value" context="#pop"/><IncludeRules context="FindEntityRefs"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Tag Content Text" defStyleNum="dsNormal"/><itemData name="Element Tag" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Component Tag" defStyleNum="dsFunction" bold="1" spellChecking="0"/><itemData name="Attribute" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Value" defStyleNum="dsString" spellChecking="0"/><itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Code Brackets" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsOperator"/><itemData name="ControlFlow" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Reserved" defStyleNum="dsKeyword" italic="1" spellChecking="0"/><itemData name="Module" defStyleNum="dsImport" spellChecking="0"/><itemData name="Template" defStyleNum="dsVerbatimString"/><itemData name="Substitution" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Special Operators" defStyleNum="dsKeyword" spellChecking="0"/></itemDatas></highlighting><general><keywords casesensitive="1"/><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/"/></comments></general></language> |