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
5.5 KiB
XML
1 line
No EOL
5.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Lex/Flex" version="7" kateversion="5.79" section="Sources" extensions="*.l;*.lex;*.flex" author="Jan Villat ([email protected])" license="LGPL"><highlighting><contexts><context name="Pre Start" attribute="Normal Text"><RegExpr String="." attribute="Normal Text" context="Definitions" beginRegion="definitions" lookAhead="1"/></context><context name="RegExpr Base" attribute="RegExpr"><RegExpr String="\\." attribute="Backslash Code"/><DetectChar char="(" attribute="RegExpr" context="RegExpr ("/><DetectChar char="[" attribute="RegExpr" context="RegExpr ["/><DetectChar char="{" attribute="RegExpr" context="RegExpr {"/><DetectChar char='"' attribute="RegExpr" context="RegExpr Q"/></context><context name="Rule RegExpr" attribute="RegExpr" lineEndContext="#pop"><LineContinue char="{" attribute="Content-Type Delimiter" context="Start Conditions Scope" beginRegion="SCscope"/><IncludeRules context="RegExpr Base"/><RegExpr String="\S" attribute="RegExpr"/><DetectSpaces attribute="Normal Text" context="Action"/></context><context name="Detect C" attribute="Normal Text"><DetectSpaces attribute="Normal Text" context="Indented C" column="0"/><StringDetect String="%{" attribute="Content-Type Delimiter" context="Lex C Bloc" beginRegion="lexCbloc" column="0"/></context><context name="Normal C Bloc" attribute="Normal Text"><DetectChar char="{" attribute="Normal Text" context="Normal C Bloc" beginRegion="bloc"/><DetectChar char="}" attribute="Normal Text" context="#pop" endRegion="bloc"/><IncludeRules context="##C++"/></context><context name="Action" attribute="Normal Text" fallthroughContext="Action C" lineEndContext="#pop"><RegExpr String="\|\s*$" attribute="Directive"/><StringDetect String="%{" attribute="Content-Type Delimiter" context="Lex Rule C Bloc" beginRegion="lexCbloc"/></context><context name="Action C" attribute="Normal Text" lineEndContext="#pop"><DetectChar char="{" attribute="Normal Text" context="Normal C Bloc" beginRegion="bloc"/><DetectChar char="}" attribute="Alert"/><IncludeRules context="##C++"/></context><context name="Comment" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="BlockComment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Definition RegExpr" attribute="RegExpr" lineEndContext="#pop"><IncludeRules context="RegExpr Base"/><RegExpr String="\S" attribute="RegExpr"/><RegExpr String=".*" attribute="Alert"/></context><context name="Definitions" attribute="Normal Text"><IncludeRules context="Detect C"/><StringDetect String="%%" attribute="Content-Type Delimiter" context="Rules" beginRegion="rules" endRegion="definitions"/><DetectChar char="%" attribute="Directive" context="Percent Command"/><StringDetect String="/*" attribute="Comment" context="Comment" beginRegion="BlockComment" column="0"/><RegExpr String="^[A-Za-z_]\w*\s+" attribute="Definition" context="Definition RegExpr" column="0"/></context><context name="Indented C" attribute="Normal Text" lineEndContext="#pop"><IncludeRules context="##C++"/></context><context name="Lex C Bloc" attribute="Normal Text"><StringDetect String="%}" attribute="Content-Type Delimiter" context="#pop" endRegion="lexCbloc" column="0"/><IncludeRules context="##C++"/></context><context name="Lex Rule C Bloc" attribute="Normal Text"><StringDetect String="%}" attribute="Content-Type Delimiter" context="#pop" endRegion="lexCbloc"/><IncludeRules context="##C++"/></context><context name="Percent Command" attribute="Directive" lineEndContext="#pop"/><context name="RegExpr (" attribute="RegExpr"><IncludeRules context="RegExpr Base"/><DetectChar char=")" attribute="RegExpr" context="#pop"/><RegExpr String="." attribute="RegExpr"/></context><context name="RegExpr Q" attribute="RegExpr"><RegExpr String="\\." attribute="Backslash Code"/><DetectChar char='"' attribute="RegExpr" context="#pop"/><RegExpr String="." attribute="RegExpr"/></context><context name="RegExpr [" attribute="RegExpr"><RegExpr String="\\." attribute="Backslash Code"/><DetectChar char="]" attribute="RegExpr" context="#pop"/><RegExpr String="." attribute="RegExpr"/></context><context name="RegExpr {" attribute="RegExpr"><RegExpr String="\\." attribute="Backslash Code"/><DetectChar char="}" attribute="RegExpr" context="#pop"/><RegExpr String="." attribute="RegExpr"/></context><context name="Rules" attribute="Normal Text" fallthroughContext="Rule RegExpr"><IncludeRules context="Detect C"/><StringDetect String="%%" attribute="Content-Type Delimiter" context="User Code" beginRegion="code" endRegion="rules"/></context><context name="Start Conditions Scope" attribute="Normal Text" fallthroughContext="Rule RegExpr"><RegExpr String="\s*\}" attribute="Content-Type Delimiter" context="#pop" endRegion="SCscope"/><DetectSpaces attribute="Normal Text" context="Rule RegExpr"/></context><context name="User Code" attribute="Normal Text"><IncludeRules context="##C++"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Definition" defStyleNum="dsDataType"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Content-Type Delimiter" defStyleNum="dsBaseN" bold="1"/><itemData name="Directive" defStyleNum="dsKeyword"/><itemData name="RegExpr" defStyleNum="dsString"/><itemData name="Backslash Code" defStyleNum="dsString" bold="1"/><itemData name="Alert" defStyleNum="dsAlert"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="/*" end="*/"/></comments></general></language> |