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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="OORS" version="6" kateversion="5.79" section="Sources" extensions="*.oors" author="Gernot Gebhard ([email protected])" license="MIT"><highlighting><list name="oors"><item>allow</item><item>apply</item><item>backtrack</item><item>condition</item><item>copy</item><item>deny</item><item>else</item><item>extends</item><item>graph</item><item>if</item><item>linear</item><item>profile</item><item>rule</item><item>ruleset</item><item>search</item><item>unsafe</item></list><contexts><context name="Main" attribute="Normal Text"><keyword String="oors" attribute="Directive"/><IncludeRules context="FindComments"/><DetectSpaces/><DetectChar char="[" attribute="Normal Text" context="Ordered" beginRegion="Ordered"/><DetectChar char="{" attribute="Normal Text" context="Unordered" beginRegion="Unordered"/><StringDetect String="%{" attribute="Content-Type Delimiter" context="Header" beginRegion="Header"/><StringDetect String="%%" attribute="Content-Type Delimiter" context="Header" beginRegion="Header"/></context><context name="FindComments" attribute="Comment"><StringDetect String="/*" attribute="Comment" context="MatchComment" lookAhead="1"/><StringDetect String="//" attribute="Comment" context="MatchComment" lookAhead="1"/></context><context name="Ordered" attribute="Normal Text"><keyword String="oors" attribute="Directive"/><IncludeRules context="FindComments"/><IncludeRules context="Accessor"/><DetectChar char="[" attribute="Normal Text" context="Ordered" beginRegion="Ordered"/><DetectChar char="{" attribute="Normal Text" context="Unordered" beginRegion="Unordered"/><DetectChar char="]" attribute="Normal Text" context="#pop" endRegion="Ordered"/><IncludeRules context="##C++"/></context><context name="Unordered" attribute="Normal Text"><keyword String="oors" attribute="Directive"/><IncludeRules context="FindComments"/><IncludeRules context="Accessor"/><DetectChar char="[" attribute="Normal Text" context="Ordered" beginRegion="Ordered"/><DetectChar char="{" attribute="Normal Text" context="Unordered" beginRegion="Unordered"/><DetectChar char="}" attribute="Normal Text" context="#pop" endRegion="Unordered"/><IncludeRules context="##C++"/></context><context name="Accessor" attribute="Directive"><StringDetect String="$$" attribute="Directive"/><RegExpr String="\$-?[_a-zA-Z1-9][_a-zA-Z0-9]*" attribute="Directive"/></context><context name="Header" attribute="Normal Text"><IncludeRules context="FindComments"/><StringDetect String="%}" attribute="Content-Type Delimiter" context="#pop" endRegion="Header"/><StringDetect String="%%" attribute="Content-Type Delimiter" context="#pop" endRegion="Header"/><IncludeRules context="##C++"/></context><context name="MatchComment" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><IncludeRules context="##Doxygen"/><StringDetect String="/*" attribute="Comment" context="#pop!CommentStar" beginRegion="Comment"/><StringDetect String="//" attribute="Comment" context="#pop!CommentSlash"/></context><context name="CommentSlash" attribute="Comment"><RegExpr String="[^\\]$" attribute="Comment" context="#pop"/><IncludeRules context="##Comments"/></context><context name="CommentStar" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Content-Type Delimiter" defStyleNum="dsBaseN" bold="1"/><itemData name="Directive" defStyleNum="dsKeyword"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language>