Damson/assets/syntax/crk.xml
astar76 11c1a7808b Build the syntax definitions into the app
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]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Crack" version="10" kateversion="5.62" section="Sources" extensions="*.crk" mimetype=""><highlighting><list name="keywords"><item>break</item><item>catch</item><item>class</item><item>continue</item><item>else</item><item>false</item><item>for</item><item>if</item><item>in</item><item>is</item><item>null</item><item>oper</item><item>return</item><item>this</item><item>true</item><item>try</item><item>typeof</item><item>while</item></list><list name="types"><item>bool</item><item>byte</item><item>float</item><item>float32</item><item>float64</item><item>int</item><item>int16</item><item>int32</item><item>int64</item><item>intz</item><item>uint</item><item>uint16</item><item>uint32</item><item>uint64</item><item>uintz</item><item>void</item></list><contexts><context name="Normal" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><WordDetect String="import" attribute="Keyword" context="Package"/><keyword String="types" attribute="Data Type"/><Float attribute="Float"/><HlCOct attribute="Octal"/><HlCHex attribute="Hex"/><Int attribute="Decimal"/><DetectChar char="'" attribute="String" context="Single quoted String"/><DetectChar char='"' attribute="String" context="String"/><DetectChar char="`" attribute="String" context="Backtick String"/><StringDetect String="b'" attribute="Char" context="Char"/><DetectChar char="#" attribute="Comment" context="Commentar 1"/><StringDetect String="//" attribute="Comment" context="MatchComment" lookAhead="1"/><StringDetect String="/*" attribute="Comment" context="MatchComment" lookAhead="1"/><DetectChar char="{" attribute="Symbol" beginRegion="block1"/><DetectChar char="}" attribute="Symbol" endRegion="block1"/><AnyChar String=":!%&amp;()+,-/.*&lt;=>?[]|~^;" attribute="Symbol"/><RegExpr String="\b[_\w][_\w\d]*(?=[\s]*[(])" attribute="Function"/><RegExpr String="@\w+" attribute="Annotation"/><DetectIdentifier attribute="Normal Text"/></context><context name="Commentar 1" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="MatchComment" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><IncludeRules context="##Doxygen"/><StringDetect String="//" attribute="Comment" context="#pop!Commentar 1"/><StringDetect String="/*" attribute="Comment" context="#pop!Commentar 2" beginRegion="Comment"/></context><context name="Backtick String" attribute="String"><HlCStringChar attribute="Char"/><StringDetect String="$(" attribute="Substitution" context="Subst"/><DetectChar char="$" attribute="Substitution" context="Short Subst"/><DetectChar char="`" attribute="String" context="#pop"/></context><context name="Braces" attribute="Normal Text"><DetectChar char=")" attribute="Normal Text" context="#pop"/><IncludeRules context="Normal"/></context><context name="Char" attribute="Char" lineEndContext="#pop"><HlCStringChar attribute="Char"/><DetectChar char="'" attribute="Char" context="#pop"/></context><context name="Commentar 2" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="BlockComment"/><IncludeRules context="##Comments"/></context><context name="Package" attribute="Package" lineEndContext="#pop"><RegExpr String="[\w\\.]+" attribute="Package" context="#pop"/></context><context name="Short Subst" attribute="Substitution" lineEndContext="#pop"><RegExpr String="\w(?!\w)" attribute="Substitution" context="#pop"/></context><context name="Single quoted String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String" context="#pop"/><HlCStringChar attribute="Char"/><DetectChar char="'" attribute="String" context="#pop"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String" context="#pop"/><HlCStringChar attribute="Char"/><DetectChar char='"' attribute="String" context="#pop"/></context><context name="Subst" attribute="Normal Text"><DetectChar char="(" attribute="Normal Text" context="Braces"/><DetectChar char=")" attribute="Substitution" context="#pop"/><IncludeRules context="Normal"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Data Type" defStyleNum="dsDataType"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator"/><itemData name="Substitution" defStyleNum="dsOthers"/><itemData name="Package" defStyleNum="dsFunction"/><itemData name="Function" defStyleNum="dsFunction"/><itemData name="Annotation" defStyleNum="dsAttribute"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/><comment name="multiLine" start="/*" end="*/" region="BlockComment"/></comments><keywords casesensitive="1"/></general></language>