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="JSON5" section="Markup" version="10" kateversion="5.79" extensions="*.json5" author="Jonathan Poelen ([email protected])" license="MIT"><highlighting><list name="Constants"><item>false</item><item>null</item><item>true</item></list><contexts><context name="JSON5" attribute="Error"><DetectChar char='"' attribute="String Delimiter" context="DQString"/><DetectChar char="'" attribute="String Delimiter" context="SQString"/><DetectChar char="{" attribute="Object Delimiter" context="Object" beginRegion="object"/><DetectChar char="[" attribute="Array Delimiter" context="Array" beginRegion="array"/><DetectSpaces attribute="Normal"/><IncludeRules context="FindComment"/><keyword String="Constants" attribute="Keyword"/><RegExpr String="[-+]?(\b0[xX][0-9a-fA-F]+|\b(0|[1-9][0-9]*)(\.[0-9]*)?([eE][+-]?[0-9]+)?|(?<!\w)\.[0-9]+([eE][+-]?[0-9]+)?|\bInfinity|\bNaN)" attribute="Number"/></context><context name="EndStringError" attribute="Normal" fallthroughContext="#pop#pop"><DetectSpaces attribute="Error" context="#pop#pop"/><DetectIdentifier attribute="Error" context="#pop#pop"/></context><context name="CommentSingle" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="FindComment" attribute="Normal" lineEndContext="#pop"><StringDetect String="//" context="CommentSingle"/><StringDetect String="/*" context="CommentMultiLine"/></context><context name="InvalidEscape" attribute="Normal"><RegExpr String="\\(u[0-9a-fA-f]+|x[0-9a-fA-f]?|.)" attribute="Error" context="#pop"/></context><context name="StringEscape" attribute="Normal"><LineContinue attribute="String Char" context="#pop"/><RegExpr String="\\(?:['"\\bfnrtv0]|x[0-9a-fA-f]{2}|u[0-9a-fA-f]{4})" attribute="String Char" context="#pop"/><IncludeRules context="InvalidEscape"/></context><context name="StringKeyEscape" attribute="Normal"><LineContinue attribute="String Key Char" context="#pop"/><RegExpr String="\\(?:['"\\bfnrtv0]|x[0-9a-fA-f]{2}|u[0-9a-fA-f]{4})" attribute="String Key Char" context="#pop"/><IncludeRules context="InvalidEscape"/></context><context name="Array" attribute="Error"><DetectChar char="," attribute="Array Value Separator"/><DetectChar char="]" attribute="Array Delimiter" context="#pop" endRegion="array"/><IncludeRules context="JSON5"/></context><context name="CommentMultiLine" attribute="Comment"><IncludeRules context="CommentSingle"/><StringDetect String="*/" attribute="Comment" context="#pop"/></context><context name="DQString" attribute="String" lineEndContext="EndStringError"><DetectChar char='"' attribute="String" context="#pop"/><DetectChar char="\" context="StringEscape" lookAhead="1"/></context><context name="DQStringKey" attribute="String Key" lineEndContext="EndStringError"><DetectChar char='"' attribute="String Key Delimiter" context="#pop"/><DetectChar char="\" context="StringKeyEscape" lookAhead="1"/></context><context name="Object" attribute="Error"><DetectChar char='"' attribute="String Key Delimiter" context="DQStringKey"/><DetectChar char="'" attribute="String Key Delimiter" context="SQStringKey"/><DetectChar char=":" attribute="Key Separator" context="ObjectValue"/><DetectChar char="}" attribute="Object Delimiter" context="#pop" endRegion="object"/><DetectSpaces attribute="Normal"/><IncludeRules context="FindComment"/></context><context name="ObjectValue" attribute="Error"><DetectChar char="," attribute="Object Value Separator" context="#pop"/><DetectChar char="}" attribute="Object Delimiter" context="#pop#pop" endRegion="object"/><IncludeRules context="JSON5"/></context><context name="SQString" attribute="String" lineEndContext="EndStringError"><DetectChar char="'" attribute="String" context="#pop"/><DetectChar char="\" context="StringEscape" lookAhead="1"/></context><context name="SQStringKey" attribute="String Key" lineEndContext="EndStringError"><DetectChar char="'" attribute="String Key Delimiter" context="#pop"/><DetectChar char="\" context="StringKeyEscape" lookAhead="1"/></context></contexts><itemDatas><itemData name="Normal" defStyleNum="dsNormal"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Number" defStyleNum="dsDecVal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Object Delimiter" defStyleNum="dsFunction" bold="1"/><itemData name="Object Value Separator" defStyleNum="dsFunction"/><itemData name="Key Separator" defStyleNum="dsFunction"/><itemData name="Array Delimiter" defStyleNum="dsOthers" bold="1"/><itemData name="Array Value Separator" defStyleNum="dsOthers"/><itemData name="String Key Delimiter" defStyleNum="dsDataType"/><itemData name="String Key" defStyleNum="dsDataType"/><itemData name="String Key Char" defStyleNum="dsChar"/><itemData name="String Delimiter" defStyleNum="dsString"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsChar"/><itemData name="Error" defStyleNum="dsError"/></itemDatas></highlighting></language> |