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
4.9 KiB
XML
1 line
No EOL
4.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="ABNF" section="Sources" version="1" kateversion="5.79" extensions="*.abnf" mimetype="text/x-abnf" author="Jonathan Poelen ([email protected])" indenter="normal" license="MIT"><highlighting><list name="core rules"><item>ALPHA</item><item>BIT</item><item>CHAR</item><item>CR</item><item>CRLF</item><item>CTL</item><item>DIGIT</item><item>DQUOTE</item><item>HEXDIG</item><item>HTAB</item><item>LF</item><item>LWSP</item><item>OCTET</item><item>SP</item><item>VCHAR</item><item>WSP</item></list><contexts><context name="Normal" attribute="Normal Text" fallthroughContext="Elements"><DetectSpaces/><StringDetect String=";" attribute="Comment" context="Comment"/><StringDetect String="=" attribute="New Rule Operator" context="Elements"/><RegExpr String="[[:alpha:]_][-\w]*(?=\s*=)" attribute="New Rule" context="SetRule"/></context><context name="Elements" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><AnyChar String="/" attribute="Alternation"/><AnyChar String="*+?!#$&@^~" attribute="Operator"/><StringDetect String=";" attribute="Comment" context="#pop!Comment"/><AnyChar String="()" attribute="Group"/><AnyChar String="[]" attribute="Option"/><AnyChar String="0123456789" attribute="Integer"/><DetectChar char='"' attribute="String" context="DQuote"/><StringDetect String="%b" attribute="Numeric Base" context="NumBin"/><StringDetect String="%d" attribute="Numeric Base" context="NumDec"/><StringDetect String="%x" attribute="Numeric Base" context="NumHex"/><StringDetect String="%i" attribute="Case Sensitivity"/><StringDetect String="%s" attribute="Case Sensitivity"/><DetectChar char="<" attribute="Prose" context="Prose"/><keyword String="core rules" attribute="Core Rule" weakDeliminator="-"/><RegExpr String="[[:alpha:]_][-\w]*" attribute="Rule Name"/><DetectChar char="\" context="Escape" lookAhead="1"/></context><context name="NumCommon" attribute="Numeric Value"><AnyChar String="." attribute="Concatenation"/><AnyChar String="-" attribute="Range"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="DQuote" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/></context><context name="Escape" attribute="String"><HlCStringChar attribute="String Char" context="#pop"/><RegExpr String="\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|\\[a-zA-Z]\b" attribute="String Char" context="#pop"/><DetectChar char="\" context="#pop"/></context><context name="NumBin" attribute="Numeric Value" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="01" attribute="Numeric Value"/><IncludeRules context="NumCommon"/></context><context name="NumDec" attribute="Numeric Value" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="0123456789" attribute="Numeric Value"/><IncludeRules context="NumCommon"/></context><context name="NumHex" attribute="Numeric Value" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="0123456789abcdefABCDEF" attribute="Numeric Value"/><IncludeRules context="NumCommon"/></context><context name="Prose" attribute="Prose" lineEndContext="#pop"><DetectChar char=">" attribute="Prose" context="#pop"/></context><context name="SetRule" attribute="Normal Text"><DetectSpaces/><StringDetect String="=" attribute="New Rule Operator" context="#pop!Elements"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Alternation" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="New Rule" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="New Rule Operator" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Integer" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Rule Name" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Core Rule" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" bold="1" spellChecking="0"/><itemData name="Group" defStyleNum="dsInformation" spellChecking="0"/><itemData name="Option" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Case Sensitivity" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Numeric Base" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Numeric Value" defStyleNum="dsSpecialString" spellChecking="0"/><itemData name="String" defStyleNum="dsString" spellChecking="0"/><itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Prose" defStyleNum="dsDataType"/><itemData name="Concatenation" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Range" defStyleNum="dsFunction" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start=";"/></comments><folding indentationsensitive="1"/></general></language> |