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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="UnrealScript" version="6" kateversion="5.62" section="Scripts" extensions="*.uc" mimetype="text/x-uscript"><highlighting><list name="keywords"><item>Cross</item><item>Dot</item><item>Static</item><item>abstract</item><item>array</item><item>auto</item><item>break</item><item>case</item><item>coerce</item><item>config</item><item>const</item><item>continue</item><item>cpptext</item><item>default</item><item>defaultproperties</item><item>do</item><item>editconst</item><item>editinline</item><item>editinlinenew</item><item>editinlineuse</item><item>else</item><item>enum</item><item>event</item><item>exec</item><item>expands</item><item>export</item><item>extends</item><item>false</item><item>final</item><item>for</item><item>foreach</item><item>function</item><item>global</item><item>hidecategories</item><item>if</item><item>ignores</item><item>instanceof</item><item>iterator</item><item>latent</item><item>local</item><item>localized</item><item>native</item><item>nativereplication</item><item>new</item><item>noexport</item><item>none</item><item>null</item><item>operator</item><item>optional</item><item>out</item><item>placeable</item><item>postoperator</item><item>preoperator</item><item>private</item><item>protected</item><item>public</item><item>reliable</item><item>replication</item><item>return</item><item>self</item><item>simulated</item><item>singular</item><item>state</item><item>static</item><item>struct</item><item>super</item><item>switch</item><item>synchronized</item><item>throws</item><item>transient</item><item>true</item><item>unreliable</item><item>var</item><item>virtual</item><item>volatile</item><item>while</item></list><list name="types"><item>ELightType</item><item>Pawn</item><item>actor</item><item>ammo</item><item>bool</item><item>boolean</item><item>byte</item><item>char</item><item>class</item><item>color</item><item>coords</item><item>double</item><item>float</item><item>int</item><item>ipaddr</item><item>long</item><item>material</item><item>name</item><item>object</item><item>package</item><item>plane</item><item>rotator</item><item>short</item><item>sound</item><item>staticmesh</item><item>string</item><item>vector</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"/><StringDetect String="//BEGIN" attribute="Region Marker" context="Region Marker" beginRegion="Region1"/><StringDetect String="//END" attribute="Region Marker" context="Region Marker" endRegion="Region1"/><AnyChar String="&#34;'" attribute="String" context="String"/><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/><DetectChar char="{" attribute="Normal Text" beginRegion="Brace1"/><DetectChar char="}" attribute="Normal Text" endRegion="Brace1"/><AnyChar String="!%&amp;()+,-&lt;=>?[]^{|}~" attribute="Symbol"/><StringDetect String="#exec" attribute="Preprocessor" context="Preprocessor" insensitive="1"/></context><context name="Commentar 1" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Commentar 2" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="Region Marker" attribute="Region Marker" lineEndContext="#pop"/><context name="Float Suffixes" attribute="Float" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="fF" attribute="Float" context="#pop"/></context><context name="Int Suffixes" attribute="Decimal" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="ULL" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="LLU" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="UL" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="LU" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="LL" attribute="Decimal" context="#pop" insensitive="1"/><AnyChar String="ULul" attribute="Decimal" context="#pop"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String"/><HlCStringChar attribute="String Char"/><AnyChar String="&#34;'" 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="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="dsChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsNormal"/><itemData name="Preprocessor" defStyleNum="dsOthers"/><itemData name="Region Marker" defStyleNum="dsRegionMarker"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="0" additionalDeliminator="&#34;'"/></general></language>