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
9.2 KiB
XML
1 line
No EOL
9.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language author="Jonathan Poelen ([email protected])" name="Pony" section="Sources" version="7" kateversion="5.62" indenter="ruby" extensions="*.pony" mimetype="text/x-pony" priority="5" license="MIT"><highlighting><list name="class_def"><item>actor</item><item>class</item><item>interface</item><item>primitive</item><item>struct</item><item>trait</item><item>type</item></list><list name="method"><item>be</item><item>fun</item></list><list name="method_new"><item>new</item></list><list name="controlflow"><item>break</item><item>compile_error</item><item>compile_intrinsic</item><item>continue</item><item>do</item><item>error</item><item>recover</item><item>return</item><item>then</item><item>until</item></list><list name="controlflow_begin"><item>for</item><item>if</item><item>ifdef</item><item>iftype</item><item>match</item><item>repeat</item><item>try</item><item>while</item><item>with</item></list><list name="controlflow_else"><item>else</item><item>elseif</item><item>elseiftype</item></list><list name="controlflow_end"><item>end</item></list><list name="operators"><item>and</item><item>not</item><item>or</item><item>xor</item></list><list name="new_overloaders"><item>create</item></list><list name="overloaders"><item>add</item><item>apply</item><item>div</item><item>eq</item><item>ge</item><item>gt</item><item>le</item><item>lt</item><item>mod</item><item>mul</item><item>ne</item><item>op_and</item><item>op_or</item><item>op_xor</item><item>shl</item><item>shr</item><item>sub</item><item>update</item></list><list name="capability"><item>box</item><item>iso</item><item>ref</item><item>tag</item><item>trn</item><item>val</item></list><list name="gencapability"><item>#alias</item><item>#any</item><item>#read</item><item>#send</item><item>#share</item></list><list name="keyword"><item>addressof</item><item>as</item><item>consume</item><item>digestof</item><item>embed</item><item>false</item><item>in</item><item>is</item><item>isnt</item><item>let</item><item>object</item><item>this</item><item>true</item><item>use</item><item>var</item><item>where</item></list><list name="types"><item>Bool</item><item>F32</item><item>F64</item><item>I128</item><item>I16</item><item>I32</item><item>I64</item><item>I8</item><item>ILong</item><item>ISize</item><item>None</item><item>String</item><item>U128</item><item>U16</item><item>U32</item><item>U64</item><item>U8</item><item>ULong</item><item>USize</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces/><DetectChar char="{" attribute="Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Symbol" endRegion="Brace1"/><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/><RegExpr String="[\+\-]?0x[0-9A-Fa-f](?:_?[0-9A-Fa-f]+)*\b" attribute="Hex"/><RegExpr String="[\+\-]?0b[01](?:_?[01]+)*\b" attribute="Binary"/><RegExpr String="[\+\-]?[0-9](?:_?[0-9]+)*(?:\.[0-9](?:_?[0-9]+)*(?:[eE][+-]?[0-9](?:_?[0-9]+)*)?|(?:[eE][+-]?[0-9](?:_?[0-9]+)*))\b" attribute="Float"/><RegExpr String="[\+\-]?[0-9](?:_?[0-9]+)*\." attribute="Error"/><RegExpr String="[\+\-]?[0-9](?:_?[0-9]+)*\b" attribute="Decimal"/><RegExpr String="[\+\-]?\.?[0-9]\w*" attribute="Error"/><DetectChar char="@" attribute="External Function" context="External Function"/><LineContinue char=";" attribute="Error"/><AnyChar String=":!&()%+-/.*<=>?[]{|}~^,;" attribute="Symbol"/><keyword String="types" attribute="Data Type"/><keyword String="controlflow_begin" attribute="Control Flow" beginRegion="Block"/><keyword String="controlflow_else" attribute="Control Flow" beginRegion="Block" endRegion="Block"/><keyword String="controlflow_end" attribute="Control Flow" endRegion="Block"/><keyword String="controlflow" attribute="Control Flow"/><StringDetect String="\\" attribute="Attributes" context="Attributes"/><keyword String="class_def" attribute="Keyword" context="DefClass"/><keyword String="method" attribute="Keyword" context="DefFun"/><keyword String="method_new" attribute="Keyword" context="DefNew"/><keyword String="keyword" attribute="Keyword"/><keyword String="capability" attribute="Capability"/><keyword String="operators" attribute="Symbol"/><RegExpr String="[a-z][_a-zA-Z0-9]*'*(?!\w)" attribute="Normal Text"/><RegExpr String="'[^\\']'" attribute="Char"/><RegExpr String="'(?:(?:\\[abefnrtv\\0]|\\x[0-9A-Fa-f][0-9A-Fa-f]|\\u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]|\\U[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])|\\')'" attribute="Special Char"/><DetectChar char="'" attribute="Error"/><DetectChar char='"' attribute="String" context="String"/><RegExpr String="_?[A-Z][_a-zA-Z0-9]*" attribute="Data Type"/><keyword String="gencapability" attribute="Constraint"/><RegExpr String="#\w+" attribute="Error"/><DetectIdentifier/></context><context name="def_base" attribute="Normal Text"><DetectSpaces/><StringDetect String="\\" attribute="Attributes" context="Attributes"/><keyword String="capability" attribute="Capability"/><DetectChar char="@" attribute="External Function" context="#pop!External Function"/></context><context name="Attributes" attribute="Attributes" lineEndContext="#pop"><DetectSpaces/><StringDetect String="\\" attribute="Attributes" context="#pop"/><DetectChar char="," attribute="Attributes"/><DetectIdentifier/></context><context name="Commentar 2" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="External Function" attribute="External Function" fallthroughContext="#pop" lineEndContext="#pop"><DetectIdentifier attribute="External Function"/></context><context name="SimpleString" attribute="String"><RegExpr String='(?:\\[abefnrtv\\0]|\\x[0-9A-Fa-f][0-9A-Fa-f]|\\u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]|\\U[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])|\\"' attribute="Special Char"/><RegExpr String="\\." attribute="Error"/><DetectChar char='"' attribute="String" context="#pop#pop"/><DetectIdentifier/></context><context name="Commentar 1" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="DefClass" attribute="Normal Text" fallthroughContext="#pop"><IncludeRules context="def_base"/><RegExpr String="_?[A-Z][_a-zA-Z0-9]*" attribute="Data Type" context="#pop"/><DetectIdentifier attribute="Error" context="#pop"/></context><context name="DefFun" attribute="Normal Text" fallthroughContext="#pop"><IncludeRules context="def_base"/><keyword String="overloaders" attribute="Overloaders" context="#pop"/><DetectIdentifier attribute="Function"/></context><context name="DefNew" attribute="Normal Text" fallthroughContext="#pop"><IncludeRules context="def_base"/><keyword String="new_overloaders" attribute="Overloaders" context="#pop"/><DetectIdentifier attribute="Function"/></context><context name="LongString" attribute="String"><DetectSpaces/><RegExpr String="(?:\\[abefnrtv\\0]|\\x[0-9A-Fa-f][0-9A-Fa-f]|\\u[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]|\\U[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])" attribute="Special Char"/><RegExpr String="\\." attribute="Error"/><StringDetect String='"""' attribute="String" context="#pop#pop"/><DetectIdentifier/></context><context name="String" attribute="String" fallthroughContext="SimpleString" lineEndContext="SimpleString"><StringDetect String='""' attribute="String" context="LongString"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Data Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="External Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Overloaders" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Attributes" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Constraint" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Capability" defStyleNum="dsAttribute" spellChecking="0" bold="0" italic="1"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Hex" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Binary" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="Special Char" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1" weakDeliminator="#"/></general></language> |