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
12 KiB
XML
1 line
No EOL
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Vue" version="19" kateversion="5.79" section="Markup" extensions="*.vue" mimetype="text/html" author="James Zuccon" license="LGPL" priority="10"><highlighting><contexts><context name="Start" attribute="Normal Text"><IncludeRules context="FindHTML"/></context><context name="El Close" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="#pop"/><DetectSpaces attribute="Other Text"/></context><context name="El Open" attribute="Error"><StringDetect String="/>" attribute="Element Symbols" context="#pop"/><DetectChar char=">" attribute="Element Symbols" context="#pop"/><IncludeRules context="FindAttributes"/></context><context name="Value" attribute="Other Text" fallthroughContext="Value NQ"><DetectChar char='"' attribute="Value" context="Value DQ"/><DetectChar char="'" attribute="Value" context="Value SQ"/><DetectSpaces/></context><context name="FindEntityRefs" attribute="Other Text"><RegExpr String="&(?:#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\w.:_-]*);" attribute="EntityRef"/><AnyChar String="&<" attribute="Error"/></context><context name="Default CSS content" attribute="Other Text"><IncludeRules context="FindStyleTagClose"/></context><context name="Default JS content" attribute="Other Text"><IncludeRules context="FindScriptTagClose"/><RegExpr String="//(?=.*</script\b)" attribute="Comment" context="JS comment close" insensitive="1"/></context><context name="DefaultCSS" attribute="Other Text"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="style"/><DetectChar char="=" attribute="Attribute Separator" context="Value"/><RegExpr String="(^|\s+)[\@A-Za-z_:*#\(\[][\)\]\w.:_-]*|\s+" attribute="Attribute"/></context><context name="DefaultJS" attribute="Other Text"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="script"/><DetectChar char="=" attribute="Attribute Separator" context="Value"/><RegExpr String="(^|\s+)[\@A-Za-z_:*#\(\[][\)\]\w.:_-]*|\s+" attribute="Attribute"/></context><context name="FindAttributes" attribute="Other Text"><DetectChar char="=" attribute="Attribute Separator" context="Value"/><RegExpr String="(^|\s+)[\@A-Za-z_:*#\(\[][\)\]\w.:_-]*(\s+[\@A-Za-z_:*#\(\[][\)\]\w.:_-]*)*\s*|\s+" attribute="Attribute"/></context><context name="SASS" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="SASS content"/><IncludeRules context="DefaultCSS"/></context><context name="SCSS" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="SCSS content"/><IncludeRules context="DefaultCSS"/></context><context name="ScriptTagClose" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="script"/></context><context name="StyleTagClose" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="style"/></context><context name="TypeScript" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="TypeScript content"/><IncludeRules context="DefaultJS"/></context><context name="CSS" attribute="Error"><RegExpr String="(?:\s+|^)lang(?=\=|\s|$)" attribute="Attribute" context="Style-Type" insensitive="1"/><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="style"/><DetectChar char=">" attribute="Element Symbols" context="CSS content"/><IncludeRules context="FindAttributes"/></context><context name="CSS content" attribute="Other Text"><RegExpr String="</(?=style\b)" attribute="Element Symbols" context="StyleTagClose" insensitive="1"/><IncludeRules context="##CSS" includeAttrib="1"/></context><context name="Comment" attribute="Comment"><DetectSpaces/><StringDetect String="-->" attribute="Comment" context="#pop" endRegion="comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="ElementTagName" attribute="Other Text" lineEndContext="#pop"><IncludeRules context="FindHTMLTags"/><IncludeRules context="FindSpecialHTMLTags"/><StringDetect String="%1" attribute="Element" context="#pop!El Open" dynamic="1"/></context><context name="ElementTagNameClose" attribute="Other Text" lineEndContext="#pop"><IncludeRules context="FindHTMLTagsClose"/><StringDetect String="%1" attribute="Element" context="#pop!El Close" dynamic="1"/></context><context name="FindElements" attribute="Other Text" lineEndContext="#pop"><RegExpr String="<(?=([A-Za-z_:][\w.:_-]*))" attribute="Element Symbols" context="ElementTagName"/><RegExpr String="</(?=([A-Za-z_:][\w.:_-]*))" attribute="Element Symbols" context="ElementTagNameClose"/></context><context name="FindHTML" attribute="Normal Text"><DetectSpaces/><DetectIdentifier/><StringDetect String="<!--" attribute="Comment" context="Comment" beginRegion="comment"/><IncludeRules context="FindElements"/><IncludeRules context="FindEntityRefs"/></context><context name="FindHTMLTags" attribute="Normal Text"><WordDetect String="pre" attribute="Element" context="#pop!El Open" beginRegion="pre" insensitive="1"/><WordDetect String="div" attribute="Element" context="#pop!El Open" beginRegion="div" insensitive="1"/><WordDetect String="table" attribute="Element" context="#pop!El Open" beginRegion="table" insensitive="1"/><WordDetect String="ul" attribute="Element" context="#pop!El Open" beginRegion="ul" insensitive="1"/><WordDetect String="ol" attribute="Element" context="#pop!El Open" beginRegion="ol" insensitive="1"/><WordDetect String="dl" attribute="Element" context="#pop!El Open" beginRegion="dl" insensitive="1"/><WordDetect String="article" attribute="Element" context="#pop!El Open" beginRegion="article" insensitive="1"/><WordDetect String="aside" attribute="Element" context="#pop!El Open" beginRegion="aside" insensitive="1"/><WordDetect String="details" attribute="Element" context="#pop!El Open" beginRegion="details" insensitive="1"/><WordDetect String="figure" attribute="Element" context="#pop!El Open" beginRegion="figure" insensitive="1"/><WordDetect String="footer" attribute="Element" context="#pop!El Open" beginRegion="footer" insensitive="1"/><WordDetect String="header" attribute="Element" context="#pop!El Open" beginRegion="header" insensitive="1"/><WordDetect String="main" attribute="Element" context="#pop!El Open" beginRegion="main" insensitive="1"/><WordDetect String="nav" attribute="Element" context="#pop!El Open" beginRegion="nav" insensitive="1"/><WordDetect String="section" attribute="Element" context="#pop!El Open" beginRegion="section" insensitive="1"/></context><context name="FindHTMLTagsClose" attribute="Normal Text"><WordDetect String="pre" attribute="Element" context="#pop!El Close" endRegion="pre" insensitive="1"/><WordDetect String="div" attribute="Element" context="#pop!El Close" endRegion="div" insensitive="1"/><WordDetect String="table" attribute="Element" context="#pop!El Close" endRegion="table" insensitive="1"/><WordDetect String="ul" attribute="Element" context="#pop!El Close" endRegion="ul" insensitive="1"/><WordDetect String="ol" attribute="Element" context="#pop!El Close" endRegion="ol" insensitive="1"/><WordDetect String="dl" attribute="Element" context="#pop!El Close" endRegion="dl" insensitive="1"/><WordDetect String="article" attribute="Element" context="#pop!El Close" endRegion="article" insensitive="1"/><WordDetect String="aside" attribute="Element" context="#pop!El Close" endRegion="aside" insensitive="1"/><WordDetect String="details" attribute="Element" context="#pop!El Close" endRegion="details" insensitive="1"/><WordDetect String="figure" attribute="Element" context="#pop!El Close" endRegion="figure" insensitive="1"/><WordDetect String="footer" attribute="Element" context="#pop!El Close" endRegion="footer" insensitive="1"/><WordDetect String="header" attribute="Element" context="#pop!El Close" endRegion="header" insensitive="1"/><WordDetect String="main" attribute="Element" context="#pop!El Close" endRegion="main" insensitive="1"/><WordDetect String="nav" attribute="Element" context="#pop!El Close" endRegion="nav" insensitive="1"/><WordDetect String="section" attribute="Element" context="#pop!El Close" endRegion="section" insensitive="1"/></context><context name="FindScriptTagClose" attribute="Other Text"><RegExpr String="</(?=script\b)" attribute="Element Symbols" context="ScriptTagClose" insensitive="1"/></context><context name="FindSpecialHTMLTags" attribute="Normal Text"><WordDetect String="style" attribute="Element" context="#pop!CSS" beginRegion="style" insensitive="1"/><WordDetect String="script" attribute="Element" context="#pop!JS" beginRegion="script" insensitive="1"/></context><context name="FindStyleTagClose" attribute="Other Text"><RegExpr String="</(?=style\b)" attribute="Element Symbols" context="StyleTagClose" insensitive="1"/></context><context name="JS" attribute="Error"><RegExpr String="(?:\s+|^)lang(?=\=|\s|$)" attribute="Attribute" context="Script-Type" insensitive="1"/><DetectChar char=">" attribute="Element Symbols" context="JS content"/><IncludeRules context="DefaultJS"/></context><context name="JS comment close" attribute="Comment" lineEndContext="#pop"><RegExpr String="</(?=script\b)" attribute="Element Symbols" context="#pop!ScriptTagClose" insensitive="1"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="JS content" attribute="Other Text"><IncludeRules context="Default JS content"/><IncludeRules context="Normal##JavaScript" includeAttrib="1"/></context><context name="SASS content" attribute="Other Text"><IncludeRules context="Default CSS content"/><IncludeRules context="##SASS" includeAttrib="1"/></context><context name="SCSS content" attribute="Other Text"><IncludeRules context="Default CSS content"/><IncludeRules context="##SCSS" includeAttrib="1"/></context><context name="Script-Type" attribute="Other Text" fallthroughContext="#pop"><DetectSpaces/><DetectChar char="=" attribute="Attribute" context="#pop!Script-Type Value"/></context><context name="Script-Type Value" attribute="Other Text" fallthroughContext="#pop!Value"><DetectSpaces/><StringDetect String='"ts"' attribute="Value" context="#pop#pop!TypeScript"/><StringDetect String="'ts'" attribute="Value" context="#pop#pop!TypeScript"/></context><context name="Style-Type" attribute="Other Text" fallthroughContext="#pop"><DetectSpaces/><DetectChar char="=" attribute="Attribute" context="#pop!Style-Type Value"/></context><context name="Style-Type Value" attribute="Other Text" fallthroughContext="#pop!Value"><DetectSpaces/><StringDetect String='"sass"' attribute="Value" context="#pop#pop!SASS"/><StringDetect String="'sass'" attribute="Value" context="#pop#pop!SASS"/><StringDetect String='"scss"' attribute="Value" context="#pop#pop!SCSS"/><StringDetect String="'scss'" attribute="Value" context="#pop#pop!SCSS"/></context><context name="TypeScript content" attribute="Other Text"><IncludeRules context="Default JS content"/><IncludeRules context="Normal##TypeScript" includeAttrib="1"/></context><context name="Value DQ" attribute="Value"><DetectChar char='"' attribute="Value" context="#pop#pop"/><IncludeRules context="FindEntityRefs"/></context><context name="Value NQ" attribute="Other Text" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><RegExpr String="[^><"'&\s=`{}]+" attribute="Value"/><IncludeRules context="FindEntityRefs"/><AnyChar String=""'`=" attribute="Error"/><AnyChar String="{}" attribute="Value"/></context><context name="Value SQ" attribute="Value"><DetectChar char="'" attribute="Value" context="#pop#pop"/><IncludeRules context="FindEntityRefs"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Other Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Element" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Element Symbols" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Attribute" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Attribute Separator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Value" defStyleNum="dsString" spellChecking="0"/><itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="<!--" end="-->" region="comment"/></comments></general></language> |