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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="QFace" version="5" kateversion="5.62" section="Scripts" extensions="*.qface" mimetype="text/x-qface;application/x-qface" indenter="cstyle" author="Dominik Holland ([email protected]), Zoltan Gera ([email protected])" license="MIT"><highlighting><list name="modules"><item>import</item><item>module</item></list><list name="YAMLconstants"><item>FALSE</item><item>False</item><item>N</item><item>NO</item><item>NULL</item><item>No</item><item>Null</item><item>OFF</item><item>ON</item><item>Off</item><item>On</item><item>TRUE</item><item>True</item><item>Y</item><item>YES</item><item>Yes</item><item>false</item><item>n</item><item>no</item><item>null</item><item>off</item><item>on</item><item>true</item><item>y</item><item>yes</item></list><list name="elements"><item>enum</item><item>flag</item></list><list name="objects"><item>interface</item><item>struct</item></list><list name="primitives"><item>bool</item><item>int</item><item>real</item><item>string</item><item>var</item></list><list name="aggregates"><item>list</item><item>map</item><item>model</item></list><list name="modifiers"><item>const</item><item>readonly</item></list><contexts><context name="Normal Text" attribute="Normal Text"><DetectSpaces/><keyword String="modules" attribute="Module" context="Module"/><keyword String="objects" attribute="Elements" context="Object"/><keyword String="elements" attribute="Elements" context="Element"/><IncludeRules context="Basic"/></context><context name="Variable" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><DetectIdentifier attribute="Property Name" context="#pop"/></context><context name="FuncOrVar" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*\(" context="#pop!Function" lookAhead="1"/><DetectIdentifier context="#pop!Variable" lookAhead="1"/></context><context name="Common" attribute="Normal Text"><DetectChar char='"' attribute="String" context="String"/><DetectChar char="'" attribute="String" context="AltString"/><StringDetect String="/**" attribute="Documentation" context="Documentation" beginRegion="Documentation"/><HlCHex attribute="NumberBaseN"/><Float attribute="Float"/><Int attribute="Number"/><IncludeRules context="Comment"/></context><context name="Basic" attribute="Normal Text"><DetectChar char="@" attribute="Annotation" context="AnnotationLeadIn"/><IncludeRules context="Common"/></context><context name="Function" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><DetectIdentifier attribute="Function Name"/><DetectChar char="(" attribute="Operator" context="FunctionParameter"/></context><context name="Annotation" attribute="Annotation" lineEndContext="#pop"><DetectSpaces/><AnyChar String=":[]{}," attribute="YAML Operator"/><RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*(?=:)" attribute="YAML Key"/><keyword String="YAMLconstants" attribute="YAML Constant"/><IncludeRules context="Common"/></context><context name="Escape" attribute="String"><HlCStringChar attribute="Escape"/><RegExpr String="\\u[0-9a-fA-F]{4}" attribute="Escape"/></context><context name="AggrInParam" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><keyword String="primitives" attribute="Primitive" context="#pop!Variable"/><keyword String="aggregates" attribute="Aggregate"/><RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*(?=\.)" attribute="Normal Text"/><DetectIdentifier attribute="Property Type" context="#pop!Variable"/><DetectChar char=">" attribute="Normal Text" context="#pop!Variable"/></context><context name="Aggregate" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><keyword String="primitives" attribute="Primitive" context="#pop!FuncOrVar"/><keyword String="aggregates" attribute="Aggregate"/><RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*(?=\.)" attribute="Normal Text"/><DetectIdentifier attribute="Property Type" context="#pop!FuncOrVar"/><DetectChar char=">" attribute="Normal Text" context="#pop!FuncOrVar"/></context><context name="AltString" attribute="String"><IncludeRules context="Escape"/><DetectChar char="'" attribute="String" context="#pop"/></context><context name="AnnotationLeadIn" attribute="Annotation" fallthroughContext="#pop!Annotation" lineEndContext="#pop"><DetectIdentifier attribute="Annotation" context="#pop!Annotation"/></context><context name="Comment" attribute="Comment"><StringDetect String="/*" attribute="Comment" context="CommentStar" beginRegion="comment"/><StringDetect String="//" attribute="Comment" context="CommentSlash"/></context><context name="CommentSlash" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="CommentStar" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Documentation" attribute="Documentation"><DetectSpaces/><StringDetect String="*/" attribute="Documentation" context="#pop" endRegion="Documentation"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Element" attribute="Normal Text"><DetectSpaces/><DetectIdentifier attribute="Element Name"/><DetectChar char="{" attribute="Normal Text" context="Element Scope" beginRegion="Brace"/><IncludeRules context="Common"/></context><context name="Element Scope" attribute="Normal Text"><DetectSpaces/><DetectChar char="=" attribute="Operator"/><DetectIdentifier attribute="Element Constant"/><DetectChar char="}" attribute="Normal Text" context="#pop#pop" endRegion="Brace"/><IncludeRules context="Basic"/></context><context name="FunctionParameter" attribute="Normal Text"><DetectSpaces/><keyword String="primitives" attribute="Primitive" context="Variable"/><keyword String="aggregates" attribute="Aggregate" context="AggrInParam"/><RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*(?=\.)" attribute="Normal Text"/><DetectIdentifier attribute="Property Type" context="Variable"/><DetectChar char="," attribute="Operator"/><DetectChar char=")" attribute="Operator" context="#pop#pop"/></context><context name="Module" attribute="Module" lineEndContext="#pop"><DetectSpaces/><DetectIdentifier attribute="Module Name"/><Float attribute="Module Version" context="#pop"/></context><context name="Object" attribute="Normal Text"><DetectSpaces/><WordDetect String="extends" attribute="Keyword"/><DetectIdentifier attribute="Object Name"/><DetectChar char="{" attribute="Normal Text" context="Object Context" beginRegion="Brace"/><IncludeRules context="Common"/></context><context name="Object Context" attribute="Normal Text"><DetectSpaces/><keyword String="modifiers" attribute="Keyword"/><DetectChar char="=" attribute="Operator"/><WordDetect String="signal" attribute="Signal" context="Function"/><WordDetect String="void" attribute="Primitive" context="Function"/><keyword String="primitives" attribute="Primitive" context="FuncOrVar"/><keyword String="aggregates" attribute="Aggregate" context="Aggregate"/><RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*(?=\.)" attribute="Normal Text"/><DetectIdentifier attribute="Property Type" context="FuncOrVar"/><DetectChar char="}" attribute="Normal Text" context="#pop#pop" endRegion="Brace"/><IncludeRules context="Basic"/></context><context name="String" attribute="String"><IncludeRules context="Escape"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment" spellChecking="0"/><itemData name="Documentation" defStyleNum="dsDocumentation"/><itemData name="Module" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Module Name" defStyleNum="dsImport"/><itemData name="Module Version" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Elements" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Element Constant" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="YAML Operator" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="YAML Key" defStyleNum="dsFunction" spellChecking="0"/><itemData name="YAML Constant" defStyleNum="dsChar" spellChecking="0"/><itemData name="Property Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Property Name" defStyleNum="dsVariable"/><itemData name="Function Name" defStyleNum="dsFunction"/><itemData name="Object Name" defStyleNum="dsDataType"/><itemData name="Element Name" defStyleNum="dsDataType"/><itemData name="Signal" defStyleNum="dsExtension" spellChecking="0"/><itemData name="Primitive" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Aggregate" defStyleNum="dsBuiltIn" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Number" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="NumberBaseN" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Escape" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="comment"/></comments><keywords casesensitive="1"/></general></language>