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.5 KiB
XML
1 line
No EOL
4.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Haxe" section="Sources" extensions="*.hx;*.Hx;*.hX;*.HX;" mimetype="text/x-hxsrc" version="6" kateversion="5.62" author="Chad Joan" license="MIT"><highlighting><list name="keywords"><item>break</item><item>case</item><item>cast</item><item>catch</item><item>class</item><item>continue</item><item>default</item><item>else</item><item>enum</item><item>extends</item><item>false</item><item>for</item><item>function</item><item>if</item><item>implements</item><item>in</item><item>inline</item><item>interface</item><item>new</item><item>null</item><item>override</item><item>private</item><item>public</item><item>return</item><item>static</item><item>super</item><item>switch</item><item>this</item><item>throw</item><item>trace</item><item>true</item><item>try</item><item>typedef</item><item>untyped</item><item>var</item><item>while</item></list><list name="modules"><item>import</item><item>package</item></list><list name="types"><item>Array</item><item>Bool</item><item>Dynamic</item><item>Error</item><item>Float</item><item>Int</item><item>List</item><item>String</item><item>Type</item><item>UInt</item><item>Unknown</item><item>Void</item></list><contexts><context name="normal" attribute="Normal Text"><RegExpr String="#if(\s+\w+)?|#(else|elseif|end|error)" attribute="Preprocessor" context="#pop"/><keyword String="keywords" attribute="Keyword"/><keyword String="modules" attribute="Module" context="ModuleName"/><keyword String="types" attribute="Type"/><DetectIdentifier attribute="Normal Text"/><HlCStringChar attribute="EscapeSequence" context="#pop"/><DetectChar char="'" attribute="RawString" context="RawString"/><DetectChar char='"' attribute="String" context="String"/><StringDetect String="//" attribute="Comment" context="CommentLine"/><StringDetect String="/*" attribute="Comment" context="CommentBlock" beginRegion="CommentBlock"/><DetectChar char="{" attribute="Normal Text" beginRegion="BraceA"/><DetectChar char="}" attribute="Normal Text" endRegion="BraceA"/><StringDetect String="..." attribute="Normal Text" context="#pop"/><StringDetect String=".." attribute="Normal Text"/><RegExpr String="[\d][\d]*(\.(?!\.)[\d]*([eE][-+]?[\d]+)?)|\.[\d][\d]*([eE][-+]?[\d]+)?" attribute="Float" context="#pop"/><RegExpr String="0[xX][\da-fA-F]+" attribute="Hex" context="#pop"/><RegExpr String="\d+" attribute="Integer" context="#pop"/></context><context name="CommentBlock" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="CommentBlock"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="CommentLine" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="ModuleName" attribute="Module Name"><StringDetect String="//" attribute="Comment" context="CommentLine"/><StringDetect String="/*" attribute="Comment" context="CommentBlock" beginRegion="CommentBlock"/><RegExpr String="[^\s\w.:,]" context="#pop"/></context><context name="RawString" attribute="RawString"><StringDetect String="\'" attribute="RawString"/><DetectChar char="'" attribute="RawString" context="#pop"/><HlCStringChar attribute="EscapeSequence"/><RegExpr String="\\(u[\da-fA-F]{4}|U[\da-fA-F]{8}|&[a-zA-Z]\w+;)" attribute="EscapeSequence"/></context><context name="String" attribute="String"><StringDetect String='\"' attribute="String"/><DetectChar char='"' attribute="String" context="#pop"/><HlCStringChar attribute="EscapeSequence"/><RegExpr String="\\(u[\da-fA-F]{4}|U[\da-fA-F]{8}|&[a-zA-Z]\w+;)" attribute="EscapeSequence"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Type" defStyleNum="dsDataType"/><itemData name="Integer" defStyleNum="dsDecVal"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Module" defStyleNum="dsKeyword" color="#0000ff" selColor="#ffffff"/><itemData name="Module Name" defStyleNum="dsNormal" color="#0000ff" selColor="#ffffff"/><itemData name="EscapeSequence" defStyleNum="dsString" color="#00aa88" selColor="#ff0000"/><itemData name="String" defStyleNum="dsString"/><itemData name="RawString" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Preprocessor" defStyleNum="dsOthers"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="CommentBlock"/></comments><keywords casesensitive="1"/></general></language> |