Damson/assets/syntax/rest.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
6.2 KiB
XML

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="reStructuredText" extensions="*.rst" section="Markup" mimetype="text/x-rst" version="10" kateversion="5.62"><highlighting><contexts><context name="Normal" attribute="Normal"><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*\*[^\s].*\*\*(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="Bold" minimal="1"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*[^\s].*\*(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="Italic" minimal="1"/><IncludeRules context="InlineMarkup"/><RegExpr String="^\s*\.\. \[(\d+|#|\*|#[\w_\.:\+\-]+)\]\s" attribute="Footnote" column="0" minimal="1"/><RegExpr String="^\s*\.\. \[[\w_\.:\+\-]+\]\s" attribute="Citation" column="0" minimal="1"/><RegExpr String="^\s*(\.\. (__:|_[\w_\.:\+\- ]+:(\s|$))|__ )" attribute="HyperlinkTarget" column="0" minimal="1"/><StringDetect String=".. code-block::" attribute="Code" context="CodeBlock" firstNonSpace="1"/><StringDetect String=".. code::" attribute="Code" context="CodeBlock" firstNonSpace="1"/><RegExpr String="^\s*\.\. ([\w\-_\.]+)(:[\w\-_\.]+)*::(\s|$)" attribute="Directive" column="0" minimal="1"/><RegExpr String="::$" attribute="Code" context="CodeBlock"/><RegExpr String="^\s*\.\. \|[\w_\.:\+\- ]+\|\s+[\w_\.:\+\-]+::\s" attribute="SubstitutionDefinition" column="0" minimal="1"/><RegExpr String=":(?=([^:]*\\:)*[^:]*:(\s|$))" attribute="Field" context="Field" firstNonSpace="1"/><RegExpr String="^(\s*)\.\.(?:\s|$)(?![\w\-_\.]+(?::[\w\-_\.]+)*::(?:\s|$))" attribute="Comment" context="Comment" column="0"/><RegExpr String="\b(?:https?|ftp)\://[^&#34;>\s`\)]*[^\s!&#34;'`\(\)\*,\.:;&lt;>\?~\]\}\\](?=[[:punct:]]*(?:[\s\)]|$))" attribute="StandaloneHyperlink"/></context><context name="CodeBlock" attribute="Code"><RegExpr String="^(\s+)(?=\S)" attribute="Code" context="Code" column="0"/></context><context name="InlineMarkup" attribute="Normal"><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))``[^\s].*``(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="InlineLiteral" minimal="1"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\|[^\s].*\|(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="SubstitutionReference" minimal="1"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))_`[^\s].*`(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="InlineInternalTarget" minimal="1"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\[[\w_\.:\+\-]+\]_(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="FootnoteReference" minimal="1"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))(`[^\s].*`|\w+)_{1,2}(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="HyperlinkReference" minimal="1"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))`[^\s].*`(?=:([\w\-_\.\+]+)(:[\w\-_\.\+]+)*:)" attribute="InterpretedText" context="TrailingRole" minimal="1"/><RegExpr String=":([\w\-_\.\+]+)(:[\w\-_\.\+]+)*:(?=`)" attribute="Role" context="Role"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))`[^\s].*`(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="DefaultRole" minimal="1"/></context><context name="Code" attribute="Code"><StringDetect String="%1" attribute="Code" column="0" dynamic="1"/><RegExpr String="^." attribute="Normal" context="#pop#pop" column="0" lookAhead="1"/></context><context name="Comment" attribute="Comment"><StringDetect String="%1 " attribute="Code" column="0" dynamic="1"/><RegExpr String="^." attribute="Normal" context="#pop" column="0" lookAhead="1"/><IncludeRules context="##Comments"/></context><context name="Field" attribute="Field"><DetectChar char=":" attribute="Field" context="#pop"/><StringDetect String="\:" attribute="Field"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*\*[^\s].*\*\*(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="FieldBold" minimal="1"/><RegExpr String="(?:^|(?&lt;=[-\s'&#34;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*[^\s].*\*(?=[-\s’”»‐‑‒–— '&#34;\)\]}>/:\.,;!\?\\]|$)" attribute="FieldItalic" minimal="1"/><IncludeRules context="InlineMarkup"/></context><context name="InterpretedText" attribute="InterpretedText" lineEndContext="#pop"><DetectChar char="`" attribute="InterpretedText" context="#pop"/></context><context name="Role" attribute="Role" lineEndContext="#pop"><DetectChar char="`" attribute="InterpretedText" context="#pop!InterpretedText"/></context><context name="TrailingRole" attribute="Role" lineEndContext="#pop"><RegExpr String=":[\w\-_\.\+]+:" attribute="Role" context="#pop"/></context></contexts><itemDatas><itemData name="Normal" defStyleNum="dsNormal"/><itemData name="Bold" defStyleNum="dsNormal" bold="1"/><itemData name="Italic" defStyleNum="dsNormal" italic="1"/><itemData name="InlineLiteral" defStyleNum="dsDataType"/><itemData name="SubstitutionReference" defStyleNum="dsFunction"/><itemData name="InlineInternalTarget" defStyleNum="dsFunction"/><itemData name="FootnoteReference" defStyleNum="dsOthers"/><itemData name="InterpretedText" defStyleNum="dsDecVal"/><itemData name="HyperlinkReference" defStyleNum="dsOthers"/><itemData name="Field" defStyleNum="dsFunction"/><itemData name="FieldBold" defStyleNum="dsFunction" bold="1"/><itemData name="FieldItalic" defStyleNum="dsFunction" italic="1"/><itemData name="Footnote" defStyleNum="dsDataType"/><itemData name="Citation" defStyleNum="dsDataType"/><itemData name="HyperlinkTarget" defStyleNum="dsDataType"/><itemData name="Directive" defStyleNum="dsDataType"/><itemData name="SubstitutionDefinition" defStyleNum="dsDataType"/><itemData name="Role" defStyleNum="dsKeyword"/><itemData name="DefaultRole" defStyleNum="dsDecVal"/><itemData name="Code" defStyleNum="dsDataType"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="StandaloneHyperlink" defStyleNum="dsOthers"/></itemDatas></highlighting><general><folding indentationsensitive="1"/><comments><comment name="singleLine" start=".."/></comments></general></language>