Damson/assets/syntax/nemerle.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.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Nemerle" alternativeNames="N" version="7" kateversion="5.62" section="Sources" extensions="*.n" mimetype="text/x-nemerle" author="caminoix + Kamil Skalski (Nazgul)" license=""><highlighting><list name="Attributes"><item>abstract</item><item>def</item><item>delegate</item><item>event</item><item>extern</item><item>internal</item><item>mutable</item><item>new</item><item>override</item><item>private</item><item>protected</item><item>public</item><item>sealed</item><item>static</item><item>virtual</item><item>volatile</item></list><list name="CompilationUnits"><item>\[Record\]</item><item>macro</item><item>namespace</item><item>using</item></list><list name="DataTypes"><item>array</item><item>bool</item><item>byte</item><item>char</item><item>decimal</item><item>double</item><item>enum</item><item>float</item><item>int</item><item>list</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>variant</item><item>void</item></list><list name="Keywords"><item>_</item><item>as</item><item>assert</item><item>base</item><item>catch</item><item>checked</item><item>do</item><item>else</item><item>false</item><item>finally</item><item>for</item><item>foreach</item><item>fun</item><item>get</item><item>if</item><item>ignore</item><item>implements</item><item>in</item><item>is</item><item>lock</item><item>match</item><item>null</item><item>out</item><item>params</item><item>ref</item><item>repeat</item><item>set</item><item>syntax</item><item>this</item><item>throw</item><item>true</item><item>try</item><item>typeof</item><item>unchecked</item><item>unless</item><item>when</item><item>where</item><item>while</item><item>with</item></list><list name="Preprocessing"><item>#define</item><item>#elif</item><item>#else</item><item>#endif</item><item>#endregion</item><item>#error</item><item>#if</item><item>#line</item><item>#pragma</item><item>#region</item><item>#undef</item><item>#warning</item></list><list name="TypeDeclarations"><item>class</item><item>interface</item><item>module</item><item>struct</item><item>type</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><StringDetect String="//" attribute="Comment" context="SingleLineComment"/><StringDetect String="/*" attribute="Comment" context="MultiLineComment" beginRegion="BlockComment"/><DetectChar char='"' attribute="String" context="NormalString"/><StringDetect String='$"' attribute="String" context="StringInterpolation"/><Float attribute="Number"/><Int attribute="Number"/><keyword String="Attributes" attribute="Attribute"/><keyword String="CompilationUnits" attribute="CompilationUnit"/><keyword String="DataTypes" attribute="DataType"/><keyword String="Keywords" attribute="Keyword"/><keyword String="Preprocessing" attribute="Preprocessing"/><keyword String="TypeDeclarations" attribute="TypeDeclaration"/><DetectIdentifier attribute="Normal Text"/><DetectChar char="{" attribute="Keyword" beginRegion="Region1"/><DetectChar char="}" attribute="Keyword" endRegion="Region1"/><DetectChar char="(" attribute="Keyword" beginRegion="Region2"/><DetectChar char=")" attribute="Keyword" endRegion="Region2"/><StringDetect String="&lt;[" attribute="CompilationUnit" beginRegion="Region3"/><StringDetect String="]>" attribute="CompilationUnit" endRegion="Region3"/></context><context name="MultiLineComment" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="BlockComment"/><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="NormalString" attribute="String"><DetectSpaces/><DetectIdentifier/><DetectChar char='"' attribute="String" context="#pop"/><RegExpr String='\{[0-9]+\}|\\["\\tn]|\\u000[8DdAa]' attribute="EscapeSequence"/></context><context name="SingleLineComment" attribute="Comment" lineEndContext="#pop"><StringDetect String="//" attribute="Comment" context="#pop"/><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="StringInterpolation" attribute="String"><DetectSpaces/><DetectIdentifier/><DetectChar char='"' attribute="String" context="#pop"/><RegExpr String='\{[0-9]+\}|\$(\S)+\s|\\["\\tn]|\\u000[8DdAa]' attribute="EscapeSequence"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="String" defStyleNum="dsString"/><itemData name="Number" defStyleNum="dsOthers" color="#00009f" selColor="#0000e9"/><itemData name="Attribute" defStyleNum="dsOthers" color="#28712f" selColor="#34923d"/><itemData name="CompilationUnit" defStyleNum="dsChar"/><itemData name="DataType" defStyleNum="dsDataType"/><itemData name="EscapeSequence" defStyleNum="dsBaseN"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Preprocessing" defStyleNum="dsChar"/><itemData name="TypeDeclaration" defStyleNum="dsOthers" color="#eeb312" selColor="ffc013" bold="1"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="BlockComment"/></comments></general></language>