Damson/assets/syntax/dts.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="Devicetree Source (DTS)" section="Other" version="2" kateversion="5.79" author="Artur Weber" license="MIT" indenter="cstyle" extensions="*.dts;*.dtsi"><highlighting><contexts><context name="Normal Text" attribute="Normal Text" lineEndContext="#pop"><StringDetect String="//" attribute="Comment" context="Comment"/><StringDetect String="/*" attribute="Comment" context="MultiLineComment" beginRegion="MultiLineComment"/><DetectChar char="{" attribute="NodeBracket" beginRegion="Node"/><DetectChar char="}" attribute="NodeBracket" endRegion="Node"/><DetectChar char=";" attribute="Symbol"/><RegExpr String="/(dts-v1|delete-node|delete-property|include|memreserve)" attribute="Tag" context="Tag"/><DetectChar char="&amp;" attribute="Reference" context="Reference"/><RegExpr String="#(include|if|ifdef|ifndef|elif|else|endif|define|undef)" attribute="Preprocessor" context="Preprocessor"/><RegExpr String="((?:[0-9a-zA-Z_]*+):[ \t]*)*(?:(/?(?:[0-9a-zA-Z,._+-]*+)(@(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f]++)*+))?)*+)([ \t]*)?{" attribute="NodeName" context="NodeName" firstNonSpace="1" lookAhead="1"/><RegExpr String="(?:[0-9a-zA-Z,._+?#-]*+)" attribute="Property" context="Property"/><DetectSpaces/></context><context name="Value" attribute="Normal Text"><AnyChar String=">&lt;" attribute="ValueBrackets"/><DetectChar char="&amp;" attribute="Reference" context="Reference"/><RegExpr String="0x(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f]++)*+)" attribute="HexInteger"/><RegExpr String="(?:[0-9](?:'?[0-9]++)*+)" attribute="Integer"/><DetectChar char='"' attribute="String" context="String"/><RegExpr String="(?:[0-9a-zA-Z_]*+)" attribute="Constant" context="Constant"/><StringDetect String="/bits/" attribute="Tag"/><RegExpr String="([+\-*/%&amp;|~!>&lt;]|&lt;&lt;|>>|&amp;&amp;||||&lt;=|>=|==|!=|\?:)" attribute="Operator"/><DetectChar char=";" attribute="Symbol" context="#pop"/></context><context name="Reference" attribute="Reference" lineEndContext="#pop"><RegExpr String="[^0-9a-zA-Z_/}]" attribute="Reference" context="#pop" lookAhead="1"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Constant" attribute="Constant" lineEndContext="#pop"><DetectChar char="(" attribute="Constant" context="#pop!ConstantParamValue"/><RegExpr String="[^0-9a-zA-Z_]" attribute="Constant" context="#pop" lookAhead="1"/></context><context name="ConstantParamValue" attribute="Normal Text"><IncludeRules context="Value"/><DetectChar char=")" attribute="Constant" context="#pop"/></context><context name="MultiLineComment" attribute="Comment"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="MultiLineComment"/></context><context name="NodeName" attribute="NodeName" lineEndContext="#pop"><DetectSpaces/><RegExpr String="(?:[0-9a-zA-Z_]*+):" attribute="NodeLabel"/><RegExpr String="@(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f]++)*+)" attribute="NodeNameAddress"/><DetectChar char="{" attribute="Symbol" context="#pop" lookAhead="1"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><DetectSpaces/><LineContinue attribute="Symbol"/></context><context name="Property" attribute="Property"><DetectChar char="=" attribute="Assignment" context="#pop!Value"/><DetectChar char=";" attribute="Symbol" context="#pop"/></context><context name="String" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/></context><context name="Tag" attribute="Tag" lineEndContext="#pop"><DetectSpaces/><DetectChar char="/" attribute="Tag" context="Value"/><DetectChar char=";" attribute="Symbol" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsOperator" spellChecking="0"/><itemData name="NodeLabel" defStyleNum="dsKeyword" bold="1" spellChecking="0"/><itemData name="NodeName" defStyleNum="dsNormal" spellChecking="0"/><itemData name="NodeNameAddress" defStyleNum="dsInformation" italic="1" spellChecking="0"/><itemData name="NodeBracket" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Tag" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Preprocessor" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Constant" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Property" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Assignment" defStyleNum="dsChar" spellChecking="0"/><itemData name="ValueBrackets" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Integer" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="HexInteger" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="String" defStyleNum="dsString" spellChecking="0"/><itemData name="Reference" defStyleNum="dsVariable" bold="1" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/" region="MultiLineComment"/></comments><keywords casesensitive="1" additionalDeliminator="#'&#34;"/></general></language>