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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Rich Text Format" version="4" kateversion="5.62" section="Markup" extensions="*.rtf" mimetype="text/rtf;application/rtf" author="Lukas Sommer" license="LGPL version 2.1, or version 3 or later versions approved by the membership of KDE e.V.; or any other license appoved by the emembership of KDE e.V."><highlighting><contexts><context name="context_normal" attribute="Text"><DetectChar char="{" attribute="Braces" beginRegion="true"/><DetectChar char="}" attribute="Braces" endRegion="true"/><DetectChar char="\" context="context_process_backslash" lookAhead="1"/></context><context name="context_functionparameter" attribute="Control words" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><RegExpr String="[-]?\d+" attribute="Numeric parameter" context="#pop#pop"/><DetectChar char="-" attribute="Error"/></context><context name="context_process_backslash" attribute="Numeric parameter" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="\|" attribute="Control words"/><StringDetect String="\~" attribute="Character"/><StringDetect String="\-" attribute="Character"/><StringDetect String="\_" attribute="Character"/><StringDetect String="\:" attribute="Control words"/><StringDetect String="\*" attribute="Control words"/><StringDetect String="\\" attribute="Character"/><StringDetect String="\{" attribute="Character"/><StringDetect String="\}" attribute="Character"/><RegExpr String="\\u([-]?\d+)|\\'[01-9a-f]{2}" attribute="Character"/><RegExpr String="\\[a-zA-Z]+" attribute="Control words" context="context_functionparameter"/><DetectChar char="\" attribute="Error"/></context></contexts><itemDatas><itemData name="Text" defStyleNum="dsString"/><itemData name="Character" defStyleNum="dsChar"/><itemData name="Braces" defStyleNum="dsKeyword"/><itemData name="Control words" defStyleNum="dsFunction"/><itemData name="Numeric parameter" defStyleNum="dsDecVal"/><itemData name="Error" defStyleNum="dsError"/></itemDatas></highlighting></language>