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 KiB
XML
1 line
No EOL
4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="JSONC" priority="1" section="Markup" version="1" kateversion="5.62" extensions="*.json;*.jsonc" mimetype="application/json" author="Sebastian Pipping ([email protected])" license="GPL"><highlighting><list name="Constants"><item>false</item><item>null</item><item>true</item></list><contexts><context name="Normal" attribute="Style_Error"><DetectChar char='"' attribute="Style_String_Value" context="String_Value"/><DetectChar char="{" attribute="Style_Seperator_Pair" context="Pair" beginRegion="Region_Object"/><DetectChar char="[" attribute="Style_Seperator_Array" context="Array" beginRegion="Region_Array"/><DetectSpaces attribute="Style_Normal"/><IncludeRules context="FindComment"/><keyword String="Constants" attribute="Style_Keyword"/><RegExpr String="-?\b((0\b|[1-9][0-9]*)\.[0-9]+(?:[eE][+-]?[0-9]+)?)" attribute="Style_Float"/><RegExpr String="-?\b(0\b|[1-9][0-9]*(?:[eE][+-]?[0-9]+)?)" attribute="Style_Decimal"/></context><context name="CommentSingle" attribute="Style_Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="FindComment" attribute="Style_Normal" lineEndContext="#pop"><StringDetect String="//" context="CommentSingle"/><StringDetect String="/*" context="CommentMultiLine"/></context><context name="Array" attribute="Style_Error"><DetectChar char="," attribute="Style_Seperator_Array"/><DetectChar char="]" attribute="Style_Seperator_Array" context="#pop" endRegion="Region_Array"/><IncludeRules context="Normal"/></context><context name="CommentMultiLine" attribute="Style_Comment"><IncludeRules context="CommentSingle"/><StringDetect String="*/" attribute="Style_Comment" context="#pop"/></context><context name="Pair" attribute="Style_Error"><DetectChar char='"' attribute="Style_String_Key" context="String_Key"/><DetectChar char=":" attribute="Style_Seperator_Pair" context="Value"/><DetectChar char="}" attribute="Style_Seperator_Pair" context="#pop" endRegion="Region_Object"/><DetectSpaces attribute="Style_Normal"/><IncludeRules context="FindComment"/></context><context name="String_Key" attribute="Style_String_Key"><DetectChar char='"' attribute="Style_String_Key" context="#pop"/><DetectChar char="\" context="String_Key_Char" lookAhead="1"/></context><context name="String_Key_Char" attribute="Style_Normal"><RegExpr String='\\(?:["\\/bfnrt]|u[0-9a-fA-f]{4})' attribute="Style_String_Key_Char" context="#pop"/><RegExpr String="\\(u[0-9a-fA-f]+|.)?" attribute="Style_Error" context="#pop"/></context><context name="String_Key_Value" attribute="Style_Normal"><RegExpr String='\\(?:["\\/bfnrt]|u[0-9a-fA-f]{4})' attribute="Style_String_Value_Char" context="#pop"/><RegExpr String="\\(u[0-9a-fA-f]+|.)?" attribute="Style_Error" context="#pop"/></context><context name="String_Value" attribute="Style_String_Value"><DetectChar char='"' attribute="Style_String_Value" context="#pop"/><DetectChar char="\" context="String_Key_Value" lookAhead="1"/></context><context name="Value" attribute="Style_Error"><DetectChar char="," attribute="Style_Seperator_Pair" context="#pop"/><DetectChar char="}" attribute="Style_Seperator_Pair" context="#pop#pop" endRegion="Region_Object"/><IncludeRules context="Normal"/></context></contexts><itemDatas><itemData name="Style_Normal" defStyleNum="dsNormal"/><itemData name="Style_Seperator_Pair" defStyleNum="dsFunction" bold="1"/><itemData name="Style_Seperator_Array" defStyleNum="dsOthers" bold="1"/><itemData name="Style_Decimal" defStyleNum="dsDecVal"/><itemData name="Style_Float" defStyleNum="dsFloat"/><itemData name="Style_String_Key" defStyleNum="dsDataType"/><itemData name="Style_String_Value" defStyleNum="dsString"/><itemData name="Style_String_Key_Char" defStyleNum="dsChar"/><itemData name="Style_String_Value_Char" defStyleNum="dsChar"/><itemData name="Style_Keyword" defStyleNum="dsKeyword"/><itemData name="Style_Error" defStyleNum="dsError"/><itemData name="Style_Comment" defStyleNum="dsComment"/></itemDatas></highlighting></language> |