Damson/assets/syntax/lpc.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
4.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="LPC" version="4" kateversion="5.62" section="Sources" extensions="*.c;*.h;*.inc;*.o" author="Andreas Klauer ([email protected])" license="Artistic"><highlighting><list name="modifiers"><item>nomask</item><item>nosave</item><item>private</item><item>protected</item><item>public</item><item>static</item><item>varargs</item><item>virtual</item></list><list name="types"><item>array</item><item>closure</item><item>float</item><item>int</item><item>mapping</item><item>mixed</item><item>object</item><item>status</item><item>string</item><item>symbol</item><item>void</item></list><list name="keywords"><item>break</item><item>case</item><item>continue</item><item>default</item><item>do</item><item>else</item><item>for</item><item>foreach</item><item>functions</item><item>if</item><item>inherit</item><item>nolog</item><item>publish</item><item>return</item><item>switch</item><item>variables</item><item>while</item></list><contexts><context name="Normal" attribute="Default"><RegExpr String="//\s*BEGIN.*$" attribute="Region Marker" beginRegion="regionMarker" firstNonSpace="1"/><RegExpr String="//\s*END.*$" attribute="Region Marker" endRegion="regionMarker" firstNonSpace="1"/><StringDetect String="//" attribute="Single-Line comments" context="Comment1"/><StringDetect String="/*" attribute="Multi-Line comments" context="Comment2" beginRegion="blockComment"/><keyword String="modifiers" attribute="Modifier"/><keyword String="types" attribute="Datatype"/><keyword String="keywords" attribute="Keywords"/><DetectChar char="#" attribute="Preprocessor" context="Preprocessor" column="0"/><Float attribute="Floats" context="Float Suffixes"/><RegExpr String="0b[01]+" attribute="Binary"/><RegExpr String="0x[0-9a-fA-F]+" attribute="Hexadecimal"/><RegExpr String="0o[0-7]+" attribute="Octal"/><Int attribute="Integer"/><RegExpr String="#'[^\t ][^\t ,);}\]/]*" attribute="Closure"/><DetectChar char='"' attribute="Strings" context="String1"/><HlCStringChar attribute="Char"/><DetectChar char="{" attribute="Default" beginRegion="brace"/><DetectChar char="}" attribute="Default" endRegion="brace"/></context><context name="Comment1" attribute="Single-Line comments" lineEndContext="#pop"><LineContinue attribute="Single-Line comments"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Comment2" attribute="Multi-Line comments"><StringDetect String="*/" attribute="Multi-Line comments" context="#pop" endRegion="blockComment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Float Suffixes" attribute="Floats" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="fFeE" attribute="Floats" context="#pop"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><LineContinue attribute="Preprocessor"/><StringDetect String="//" attribute="Single-Line comments" context="Comment1"/><StringDetect String="/*" attribute="Multi-Line comments" context="Comment2" beginRegion="blockComment"/><keyword String="modifiers" attribute="Modifier"/><keyword String="types" attribute="Datatype"/><keyword String="keywords" attribute="Keywords"/><DetectChar char='"' attribute="Preprocessor-Strings" context="String2"/></context><context name="String1" attribute="Strings" lineEndContext="#pop"><LineContinue attribute="Default"/><StringDetect String="\\" attribute="Strings"/><StringDetect String='\"' attribute="Strings"/><DetectChar char='"' attribute="Strings" context="#pop"/></context><context name="String2" attribute="Preprocessor-Strings" lineEndContext="#pop"><LineContinue attribute="Default"/><StringDetect String="\\" attribute="Preprocessor-Strings"/><StringDetect String='\"' attribute="Preprocessor-Strings"/><DetectChar char='"' attribute="Preprocessor-Strings" context="#pop"/></context></contexts><itemDatas><itemData name="Default" defStyleNum="dsNormal"/><itemData name="Single-Line comments" defStyleNum="dsComment"/><itemData name="Multi-Line comments" defStyleNum="dsComment"/><itemData name="Modifier" defStyleNum="dsDataType"/><itemData name="Datatype" defStyleNum="dsDataType"/><itemData name="Keywords" defStyleNum="dsKeyword"/><itemData name="Preprocessor" defStyleNum="dsOthers"/><itemData name="Floats" defStyleNum="dsFloat"/><itemData name="Binary" defStyleNum="dsBaseN"/><itemData name="Hexadecimal" defStyleNum="dsBaseN"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Integer" defStyleNum="dsDecVal"/><itemData name="Closure" defStyleNum="dsOthers"/><itemData name="Strings" defStyleNum="dsString"/><itemData name="Preprocessor-Strings" defStyleNum="dsString"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="Region Marker" defStyleNum="dsRegionMarker"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="blockComment"/></comments><keywords casesensitive="1"/></general></language>