Damson/assets/syntax/boo.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
9.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Boo" version="10" kateversion="5.62" section="Sources" extensions="*.boo" mimetype="text/x-boo" author="Marc Dassonneville" license="LGPL"><highlighting><list name="namespace"><item>as</item><item>from</item><item>import</item><item>namespace</item></list><list name="operators"><item>and</item><item>assert</item><item>in</item><item>is</item><item>not</item><item>or</item></list><list name="primitive"><item>bool</item><item>byte</item><item>char</item><item>date</item><item>decimal</item><item>double</item><item>duck</item><item>int</item><item>long</item><item>object</item><item>regex</item><item>sbyte</item><item>short</item><item>single</item><item>string</item><item>timespan</item><item>uint</item><item>ulong</item><item>ushort</item></list><list name="definition"><item>abstract</item><item>callable</item><item>class</item><item>constructor</item><item>def</item><item>destructor</item><item>do</item><item>enum</item><item>event</item><item>final</item><item>get</item><item>interface</item><item>internal</item><item>macro</item><item>of</item><item>override</item><item>partial</item><item>private</item><item>protected</item><item>public</item><item>return</item><item>set</item><item>static</item><item>struct</item><item>transient</item><item>virtual</item><item>yield</item></list><list name="boolean"><item>false</item><item>true</item></list><list name="literals"><item>null</item><item>self</item><item>super</item></list><list name="keywords"><item>and</item><item>break</item><item>cast</item><item>continue</item><item>elif</item><item>else</item><item>ensure</item><item>except</item><item>for</item><item>given</item><item>goto</item><item>if</item><item>in</item><item>is</item><item>isa</item><item>not</item><item>or</item><item>otherwise</item><item>pass</item><item>raise</item><item>ref</item><item>try</item><item>unless</item><item>when</item><item>while</item></list><list name="builtins"><item>__eval__</item><item>__switch__</item><item>array</item><item>assert</item><item>checked</item><item>enumerate</item><item>filter</item><item>getter</item><item>len</item><item>lock</item><item>map</item><item>matrix</item><item>max</item><item>min</item><item>normalArrayIndexing</item><item>print</item><item>property</item><item>range</item><item>rawArrayIndexing</item><item>required</item><item>typeof</item><item>unchecked</item><item>using</item><item>yieldAll</item><item>zip</item></list><contexts><context name="Normal" attribute="Normal Text"><keyword String="namespace" attribute="Preprocessor"/><keyword String="definition" attribute="Definition Keyword"/><keyword String="operators" attribute="Operator"/><keyword String="keywords" attribute="Flow Control Keyword"/><keyword String="builtins" attribute="Builtin Function"/><keyword String="literals" attribute="Special Variable"/><keyword String="boolean" attribute="Special Variable"/><keyword String="primitive" attribute="Data Type"/><RegExpr String="[a-zA-Z_][a-zA-Z_0-9]+" attribute="Normal Text"/><RegExpr String=" ((?:[0-9]*\.[0-9]+|[0-9]+\.|(?:[0-9]+|[0-9]*\.[0-9]+|[0-9]+\.)[eE][+-]?[0-9]+)|[0-9]+)[jJ]" attribute="Complex"/><RegExpr String="(?:[0-9]+\.[0-9]*|\.[0-9]+)(?:[eE][0-9]+)?" attribute="Float"/><RegExpr String="(?:[1-9][0-9]*(?:[eE][0-9]+)?|0)" attribute="Int"/><RegExpr String="[1-9][0-9]*(?:[eE][0-9.]+)?[Ll]" attribute="Long"/><RegExpr String="0[Xx][0-9a-fA-F]+" attribute="Hex"/><RegExpr String="0[1-9][0-9]*" attribute="Octal"/><StringDetect String="r'''" attribute="Raw String" context="Raw Tripple A-string" insensitive="1"/><StringDetect String='r"""' attribute="Raw String" context="Raw Tripple Q-string" insensitive="1"/><StringDetect String="r'" attribute="Raw String" context="Raw A-string"/><StringDetect String="R'" attribute="Raw String" context="Raw A-string"/><StringDetect String='r"' attribute="Raw String" context="Raw Q-string"/><StringDetect String='R"' attribute="Raw String" context="Raw Q-string"/><DetectChar char="#" attribute="Comment" context="Comment"/><RegExpr String="^\s*u?'''" attribute="Comment" context="Tripple A-comment" beginRegion="Tripple A-region" column="0"/><RegExpr String='^\s*u?"""' attribute="Comment" context="Tripple Q-comment" beginRegion="Tripple Q-region" column="0"/><StringDetect String="//" attribute="Comment" context="Comment SlashSlash"/><StringDetect String="'''" attribute="String" context="Tripple A-string" beginRegion="Tripple A-region"/><StringDetect String='"""' attribute="String" context="Tripple Q-string" beginRegion="Tripple Q-region"/><DetectChar char="'" attribute="String" context="Single A-string"/><DetectChar char='"' attribute="String" context="Single Q-string"/><DetectChar char="(" attribute="Operator" context="parenthesised" beginRegion="parenthesis"/><DetectChar char=")" attribute="Operator" context="#pop" endRegion="parenthesis"/><StringDetect String="[|" attribute="Operator" context="Quasi-Quotation" beginRegion="qq"/><StringDetect String="|]" attribute="Operator" context="#pop" endRegion="qq"/><AnyChar String="+*/%|=;!&lt;>!^&amp;~-" attribute="Operator"/></context><context name="Raw A-string" attribute="Raw String"><HlCStringChar attribute="Raw String"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><DetectChar char="'" attribute="Raw String" context="#pop"/></context><context name="Raw Q-string" attribute="Raw String"><HlCStringChar attribute="Raw String"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><DetectChar char='"' attribute="Raw String" context="#pop"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="Comment SlashSlash" attribute="Comment" lineEndContext="#pop"><LineContinue attribute="Comment"/><IncludeRules context="##Comments"/></context><context name="Quasi-Quotation" attribute="Operator" noIndentationBasedFolding="1"><IncludeRules context="Normal"/></context><context name="Raw Tripple A-string" attribute="Raw String" noIndentationBasedFolding="1"><HlCStringChar attribute="Raw String"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><StringDetect String="'''" attribute="String" context="#pop" endRegion="Tripple A-region"/></context><context name="Raw Tripple Q-string" attribute="Raw String" noIndentationBasedFolding="1"><HlCStringChar attribute="Raw String"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><StringDetect String='"""' attribute="String" context="#pop" endRegion="Tripple Q-region"/></context><context name="Single A-string" attribute="String"><HlCStringChar attribute="String Char"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><DetectChar char="'" attribute="String" context="#pop"/></context><context name="Single Q-string" attribute="String"><HlCStringChar attribute="String Char"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><DetectChar char='"' attribute="String" context="#pop"/></context><context name="Tripple A-comment" attribute="Comment" noIndentationBasedFolding="1"><StringDetect String="'''" attribute="Comment" context="#pop" endRegion="Tripple A-region"/><IncludeRules context="##Comments"/></context><context name="Tripple A-string" attribute="String" noIndentationBasedFolding="1"><HlCStringChar attribute="String Char"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><StringDetect String="'''" attribute="String" context="#pop" endRegion="Tripple A-region"/></context><context name="Tripple Q-comment" attribute="Comment" noIndentationBasedFolding="1"><HlCChar attribute="Comment"/><StringDetect String='"""' attribute="Comment" context="#pop" endRegion="Tripple Q-region"/><IncludeRules context="##Comments"/></context><context name="Tripple Q-string" attribute="String" noIndentationBasedFolding="1"><HlCStringChar attribute="String Char"/><RegExpr String="%(\([a-zA-Z0-9_]+\))?[a-zA-Z]" attribute="String Substitution"/><StringDetect String='"""' attribute="String" context="#pop" endRegion="Tripple Q-region"/></context><context name="parenthesised" attribute="Normal Text" noIndentationBasedFolding="1"><IncludeRules context="Normal"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Definition Keyword" defStyleNum="dsKeyword"/><itemData name="Data Type" defStyleNum="dsDataType"/><itemData name="Operator" defStyleNum="dsOperator"/><itemData name="String Substitution" defStyleNum="dsNormal"/><itemData name="Flow Control Keyword" defStyleNum="dsControlFlow"/><itemData name="Builtin Function" defStyleNum="dsDataType"/><itemData name="Special Variable" defStyleNum="dsOthers"/><itemData name="Preprocessor" defStyleNum="dsChar"/><itemData name="String Char" defStyleNum="dsSpecialChar"/><itemData name="Long" defStyleNum="dsOthers"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Int" defStyleNum="dsDecVal"/><itemData name="Hex" defStyleNum="dsOthers"/><itemData name="Octal" defStyleNum="dsOthers"/><itemData name="Complex" defStyleNum="dsOthers"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="String" defStyleNum="dsString"/><itemData name="Raw String" defStyleNum="dsVerbatimString"/></itemDatas></highlighting><general><folding indentationsensitive="1"/><emptyLines><emptyLine regexpr="\s+"/><emptyLine regexpr="\s*#.*$"/></emptyLines><comments><comment name="singleLine" start="#" position="afterwhitespace"/></comments><keywords casesensitive="1"/></general></language>