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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language version="6" kateversion="5.62" name="RELAX NG" section="Markup" extensions="*.rng;*.RNG" license="LGPL" author="Thomas Schraitle (tom_schr AT web DOT de)"><highlighting><list name="relaxngnames"><item>anyName</item><item>attribute</item><item>choice</item><item>data</item><item>define</item><item>div</item><item>element</item><item>empty</item><item>except</item><item>externalRef</item><item>grammar</item><item>group</item><item>include</item><item>interleave</item><item>list</item><item>mixed</item><item>name</item><item>notAllowed</item><item>nsName</item><item>oneOrMore</item><item>optional</item><item>param</item><item>parentRef</item><item>ref</item><item>start</item><item>text</item><item>value</item><item>zeroOrMore</item></list><contexts><context name="normalText" attribute="Normal Text"><StringDetect String="&lt;!--" attribute="Comment" context="comment" beginRegion="comment"/><DetectChar char="&lt;" attribute="Tag" context="tagname"/><RegExpr String="&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\w.:_-]*);" attribute="Entity Reference"/></context><context name="attributes" attribute="Attribute"><StringDetect String="/>" attribute="Tag" context="#pop#pop"/><DetectChar char=">" attribute="Tag" context="#pop#pop"/><RegExpr String="\s*=\s*" attribute="Normal Text" context="attrValue"/></context><context name="attrValue" attribute="Invalid"><StringDetect String="/>" attribute="Invalid" context="#pop#pop#pop"/><DetectChar char=">" attribute="Invalid" context="#pop#pop#pop"/><DetectChar char='"' attribute="Attribute Value" context="string"/></context><context name="comment" attribute="Comment"><DetectSpaces/><StringDetect String="-->" attribute="Comment" context="#pop" endRegion="comment"/><RegExpr String="-(-(?!->))+" attribute="Error"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="detectEntRef" attribute="Normal Text"><RegExpr String="&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z_:][\w.:_-]*);" attribute="Entity Reference"/></context><context name="string" attribute="Attribute Value"><DetectChar char='"' attribute="Attribute Value" context="#pop#pop"/><IncludeRules context="detectEntRef"/></context><context name="tagname" attribute="Tag"><keyword String="relaxngnames" attribute="RELAX NG Tag" context="attributes"/><DetectSpaces attribute="Attribute" context="attributes"/><DetectChar char=">" attribute="Tag" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Tag" defStyleNum="dsKeyword"/><itemData name="Entity Reference" defStyleNum="dsOthers"/><itemData name="Invalid" defStyleNum="dsError"/><itemData name="Attribute" defStyleNum="dsOthers"/><itemData name="Attribute Value" defStyleNum="dsString" color="#800000" selColor="#ffffff" bold="0" italic="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="RELAX NG Tag" defStyleNum="dsKeyword" color="#000080" selColor="#ffffff" bold="1" italic="0"/><itemData name="Error" defStyleNum="dsError"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="&lt;!--" end="-->" region="comment"/></comments><keywords casesensitive="0" weakDeliminator="-:" additionalDeliminator='"{}'/></general></language>