Damson/assets/syntax/sml.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
2.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="SML" version="6" kateversion="5.62" section="Sources" extensions="*.sml;*.ml" mimetype="" author="Christoph Cullmann ([email protected])" license="MIT"><highlighting><list name="keywords"><item>abstype</item><item>and</item><item>andalso</item><item>as</item><item>case</item><item>datatype</item><item>do</item><item>else</item><item>end</item><item>eqtype</item><item>exception</item><item>false</item><item>fn</item><item>fun</item><item>functor</item><item>handle</item><item>if</item><item>in</item><item>include</item><item>infix</item><item>infixr</item><item>let</item><item>local</item><item>nonfix</item><item>of</item><item>op</item><item>open</item><item>orelse</item><item>raise</item><item>rec</item><item>sharing</item><item>sig</item><item>signature</item><item>struct</item><item>structure</item><item>then</item><item>true</item><item>type</item><item>val</item><item>where</item><item>while</item><item>with</item><item>withtype</item></list><list name="types"><item>array</item><item>bool</item><item>char</item><item>int</item><item>list</item><item>option</item><item>order</item><item>real</item><item>ref</item><item>string</item><item>substring</item><item>unit</item><item>vector</item><item>word</item></list><contexts><context name="Normal" attribute="Normal Text"><StringDetect String="(*" attribute="Comment" context="Multiline/Inline Comment" beginRegion="Comment"/><DetectChar char='"' attribute="String" context="String"/><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><Float attribute="Float" context="Float Suffixes"/><HlCHex attribute="Decimal"/><Int attribute="Decimal"/></context><context name="Float Suffixes" attribute="Float" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="fF" attribute="Float" context="#pop"/></context><context name="Multiline/Inline Comment" attribute="Comment"><DetectSpaces/><StringDetect String="*)" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="String" attribute="String"><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="Data Type" defStyleNum="dsDataType"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="String Char" defStyleNum="dsChar"/></itemDatas></highlighting><general><keywords casesensitive="1"/><comments><comment name="multiLine" start="(*" end="*)" region="Comment"/></comments></general></language>