Damson/assets/syntax/cs.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.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="C#" alternativeNames="CS;CSharp" version="14" kateversion="5.62" section="Sources" extensions="*.cs;*.ashx" mimetype="text/x-csharp-src;text/x-csharp-hde" indenter="cstyle" style="C++"><highlighting><list name="keywords"><item>#define</item><item>#elif</item><item>#else</item><item>#endif</item><item>#error</item><item>#if</item><item>#line</item><item>#undef</item><item>#warning</item><item>abstract</item><item>as</item><item>base</item><item>break</item><item>case</item><item>catch</item><item>checked</item><item>class</item><item>continue</item><item>default</item><item>delegate</item><item>do</item><item>else</item><item>enum</item><item>event</item><item>explicit</item><item>extern</item><item>false</item><item>finally</item><item>fixed</item><item>for</item><item>foreach</item><item>goto</item><item>if</item><item>implicit</item><item>in</item><item>interface</item><item>internal</item><item>is</item><item>lock</item><item>namespace</item><item>new</item><item>null</item><item>operator</item><item>out</item><item>override</item><item>params</item><item>private</item><item>protected</item><item>public</item><item>readonly</item><item>ref</item><item>return</item><item>sealed</item><item>sizeof</item><item>stackalloc</item><item>static</item><item>struct</item><item>switch</item><item>this</item><item>throw</item><item>true</item><item>try</item><item>typeof</item><item>unchecked</item><item>unsafe</item><item>using</item><item>virtual</item><item>while</item></list><list name="types"><item>bool</item><item>byte</item><item>char</item><item>const</item><item>decimal</item><item>double</item><item>float</item><item>int</item><item>long</item><item>object</item><item>sbyte</item><item>short</item><item>string</item><item>uint</item><item>ulong</item><item>ushort</item><item>void</item></list><contexts><context name="Normal" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><Float attribute="Float" context="Float Suffixes"/><HlCOct attribute="Octal"/><HlCHex attribute="Hex"/><Int attribute="Decimal" context="Int Suffixes"/><HlCChar attribute="Char"/><DetectChar char='"' attribute="String" context="String"/><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"/><RegExpr String="\bvar(?=\s+\w+)" attribute="Data Type"/><RegExpr String="\b(partial(?=\s+(?:class|struct|interface|void))|yield(?=\s+(?:return|break))|(?:set|get)(?=\s*[;{])|global(?=\s*::\s*\w+))" attribute="Keyword"/><StringDetect String="#region" attribute="Decimal" context="Decimal" beginRegion="Region1"/><StringDetect String="#endregion" attribute="Decimal" context="Decimal" endRegion="Region1"/><RegExpr String="\b[_\w][_\w\d]*(?=[\s]*[(])" attribute="Function"/><DetectChar char="." attribute="Symbol" context="Member"/><AnyChar String=":!%&amp;()+,-/*&lt;=>?[]|~^;" attribute="Symbol"/></context><context name="Decimal" attribute="Decimal" lineEndContext="#pop"/><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="BlockComment"/></context><context name="Commentar 1" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="Commentar 2" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="BlockComment"/><IncludeRules context="##Comments"/></context><context name="Float Suffixes" attribute="Float" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="dDfFmM" attribute="Float" context="#pop"/></context><context name="Int Suffixes" attribute="Decimal" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="UL" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="LU" attribute="Decimal" context="#pop" insensitive="1"/><AnyChar String="ULul" attribute="Decimal" context="#pop"/></context><context name="Member" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="\b[_\w][_\w\d]*(?=[\s]*)" attribute="Function" context="#pop"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String" context="#pop"/><HlCStringChar attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Function" defStyleNum="dsFunction"/><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="String Char" defStyleNum="dsSpecialChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/" region="BlockComment"/></comments><keywords casesensitive="1"/></general></language>