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
6.6 KiB
XML
1 line
No EOL
6.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="ATS" version="3" kateversion="5.62" section="Sources" extensions="*.dats;*.sats;*.hats" mimetype="" author="Kiwamu Okabe ([email protected])" license="LGPL"><highlighting><list name="keywords"><item>absprop</item><item>abst0ype</item><item>abstype</item><item>absview</item><item>absviewt0ype</item><item>absviewtype</item><item>absvt0ype</item><item>absvtype</item><item>and</item><item>as</item><item>assume</item><item>begin</item><item>break</item><item>case</item><item>classdec</item><item>continue</item><item>dataprop</item><item>datasort</item><item>datatype</item><item>dataview</item><item>dataviewtype</item><item>datavtype</item><item>do</item><item>dynload</item><item>else</item><item>end</item><item>exception</item><item>extern</item><item>extval</item><item>extype</item><item>for</item><item>if</item><item>in</item><item>infix</item><item>infixl</item><item>infixr</item><item>let</item><item>local</item><item>macdef</item><item>macrodef</item><item>nonfix</item><item>of</item><item>op</item><item>overload</item><item>postfix</item><item>prefix</item><item>propdef</item><item>prval</item><item>prvar</item><item>rec</item><item>scase</item><item>sif</item><item>sortdef</item><item>sta</item><item>stacst</item><item>stadef</item><item>staload</item><item>stavar</item><item>symelim</item><item>symintr</item><item>then</item><item>tkindef</item><item>try</item><item>type</item><item>typedef</item><item>val</item><item>var</item><item>viewdef</item><item>viewtypedef</item><item>vtypedef</item><item>when</item><item>where</item><item>while</item><item>with</item><item>withprop</item><item>withtype</item><item>withview</item><item>withviewtype</item><item>withvtype</item></list><list name="special keywords"><item>#assert</item><item>#define</item><item>#elif</item><item>#elifdef</item><item>#elifndef</item><item>#else</item><item>#endif</item><item>#error</item><item>#if</item><item>#ifdef</item><item>#ifndef</item><item>#include</item><item>#print</item><item>#then</item><item>#undef</item><item>$arrpsz</item><item>$arrptrsize</item><item>$delay</item><item>$effmask</item><item>$effmask_all</item><item>$effmask_exn</item><item>$effmask_ntm</item><item>$effmask_ref</item><item>$effmask_wrt</item><item>$extern</item><item>$extkind</item><item>$extval</item><item>$extype</item><item>$extype_struct</item><item>$ldelay</item><item>$list</item><item>$list_t</item><item>$list_vt</item><item>$lst</item><item>$lst_t</item><item>$lst_vt</item><item>$myfilename</item><item>$myfunction</item><item>$mylocation</item><item>$raise</item><item>$rec</item><item>$rec_t</item><item>$rec_vt</item><item>$record</item><item>$record_t</item><item>$record_vt</item><item>$showtype</item><item>$tup</item><item>$tup_t</item><item>$tup_vt</item><item>$tuple</item><item>$tuple_t</item><item>$tuple_vt</item></list><list name="function keywords"><item>castfn</item><item>fix</item><item>fn</item><item>fnx</item><item>fun</item><item>implement</item><item>implmnt</item><item>lam</item><item>llam</item><item>praxi</item><item>prfn</item><item>prfun</item><item>primplement</item><item>primplmnt</item></list><contexts><context name="Normal" attribute="Normal Text"><StringDetect String="////" attribute="Comment" context="Rest-of-file Comment" beginRegion="comment"/><StringDetect String="(*" attribute="Comment" context="Multiline Comment" beginRegion="comment"/><StringDetect String="/*" attribute="Comment" context="Multiline C-style Comment" beginRegion="Comment"/><StringDetect String="//" attribute="Comment" context="Singleline C++ style Comment"/><StringDetect String=".<" attribute="Termination Metrics" context="Termination Metrics Context"/><RegExpr String="`\s*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff_][A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff0-9_']*" attribute="Constructor"/><keyword String="keywords" attribute="Keyword"/><keyword String="function keywords" attribute="Function Keyword" context="Function Keyword Context"/><keyword String="special keywords" attribute="Special Keyword"/><RegExpr String="[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff_][A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff0-9_']*" attribute="Identifier"/><RegExpr String="~?0[xX][0-9A-Fa-f_]+" attribute="Hexadecimal"/><RegExpr String="~?[0-9][0-9_]*((\.([0-9][0-9_]*)?([eE][-+]?[0-9][0-9_]*)?)|([eE][-+]?[0-9][0-9_]*))" attribute="Float"/><RegExpr String="~?[0-9][0-9_]*" attribute="Decimal"/></context><context name="Multiline Comment" attribute="Comment"><StringDetect String="*)" attribute="Comment" context="#pop" endRegion="comment"/><StringDetect String="(*" attribute="Comment" context="Multiline Comment" beginRegion="comment"/><IncludeRules context="##Comments"/></context><context name="Existential Context" attribute="Existential"><DetectChar char="]" attribute="Existential" context="#pop"/></context><context name="Function Keyword Context" attribute="Normal Text"><DetectChar char="=" attribute="Normal Text" context="#pop"/><DetectChar char="{" attribute="Universal" context="Universal Context"/><DetectChar char="[" attribute="Existential" context="Existential Context"/><IncludeRules context="Normal"/></context><context name="Multiline C-style Comment" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="Rest-of-file Comment" attribute="Comment"/><context name="Singleline C++ style Comment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="Termination Metrics Context" attribute="Termination Metrics"><StringDetect String=">." attribute="Termination Metrics" context="#pop"/></context><context name="Universal Context" attribute="Universal"><DetectChar char="}" attribute="Universal" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Identifier" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Function Keyword" defStyleNum="dsKeyword"/><itemData name="Special Keyword" defStyleNum="dsDataType"/><itemData name="Termination Metrics" defStyleNum="dsDataType"/><itemData name="Universal" defStyleNum="dsDataType"/><itemData name="Existential" defStyleNum="dsDataType"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Hexadecimal" defStyleNum="dsBaseN"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Constructor" defStyleNum="dsDataType"/></itemDatas></highlighting><general><keywords casesensitive="1"/><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="(*" end="*)" region="comment"/></comments></general></language> |