Damson/assets/syntax/rmarkdown.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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="R Markdown" section="Markup" extensions="*.rmd;*.Rmd;*.RMD" mimetype="text/x-r-markdown" version="11" kateversion="6.22" author="Dirk Sarpe ([email protected])" license="GPL"><highlighting><contexts><context name="Start Document" attribute="Markdown" fallthroughContext="Normal Text" lineEmptyContext="Normal Text" lineEndContext="Normal Text"><RegExpr String="^---$" attribute="Markdown" context="YAMLhead" beginRegion="YAMLhead block" column="0"/></context><context name="content-list" attribute="Markdown" lineEmptyContext="#pop"><IncludeRules context="Common"/><IncludeRules context="content-list##Markdown" includeAttrib="1"/></context><context name="Common" attribute="Markdown"><RegExpr String="```+\{r.*\}" attribute="Structure" context="R block" beginRegion="R block" firstNonSpace="1"/><RegExpr String="`r\b" attribute="Structure" context="R inline"/><StringDetect String="$$" attribute="MathMode" context="LaTeX equation block" beginRegion="LaTeX equation block"/><DetectChar char="$" attribute="MathMode" context="LaTeX inline equation"/><StringDetect String="\$" attribute="Backslash Escape"/></context><context name="Normal Text" attribute="Markdown" lineEmptyContext="find-code-block"><IncludeRules context="Common"/><IncludeRules context="Overwrite Markdown Normal Text"/><IncludeRules context="Normal Text##Markdown" includeAttrib="1"/></context><context name="blockquote-list" attribute="Markdown" lineEmptyContext="#pop"><IncludeRules context="Common"/><IncludeRules context="blockquote-list##Markdown" includeAttrib="1"/></context><context name="LaTeX equation block" attribute="MathMode"><StringDetect String="$$" attribute="MathMode" context="#pop" endRegion="LaTeX equation block"/><IncludeRules context="MathModeDisplay##LaTeX" includeAttrib="1"/></context><context name="LaTeX inline equation" attribute="MathMode"><DetectChar char="$" attribute="MathMode" context="#pop"/><IncludeRules context="MathMode##LaTeX" includeAttrib="1"/></context><context name="Overwrite Markdown Normal Text" attribute="Markdown"><DetectChar char=">" attribute="Blockquote" context="blockquote" firstNonSpace="1"/><RegExpr String="^(\s*)[\*\+\-](\s+)" attribute="List" context="list" column="0"/><RegExpr String="^(\s*)\d\.(\s+)" attribute="Number List" context="numlist" column="0"/><RegExpr String="^(\s*)\d\d+\.(\s+)" attribute="Number List" context="numlist2" column="0"/></context><context name="R block" attribute="Markdown"><RegExpr String="```+(?=\s*$)" attribute="Structure" context="#pop" endRegion="R block" firstNonSpace="1"/><IncludeRules context="##R Script" includeAttrib="1"/></context><context name="R inline" attribute="Markdown"><DetectChar char="`" attribute="Structure" context="#pop"/><IncludeRules context="##R Script" includeAttrib="1"/></context><context name="YAMLhead" attribute="Document Headers" fallthroughContext="Lvl0Text##YAML"><RegExpr String="^---$" attribute="Markdown" context="#pop" endRegion="YAMLhead block" column="0"/><IncludeRules context="##YAML" includeAttrib="1"/></context><context name="blockquote" attribute="Markdown" lineEmptyContext="#pop"><IncludeRules context="Common"/><IncludeRules context="blockquote##Markdown" includeAttrib="1"/></context><context name="find-code-block" attribute="Markdown" fallthroughContext="#pop"><IncludeRules context="find-code-block##Markdown" includeAttrib="1"/></context><context name="list" attribute="Markdown" fallthroughContext="content-list"><RegExpr String="^%1%2\s(?:\s{4}|\t).*$" attribute="List: Code" column="0" dynamic="1"/><RegExpr String="^%1%2\s+>" attribute="Blockquote" context="blockquote-list" column="0" dynamic="1"/><RegExpr String="^%1%2\s+\s*(?:(?:\*\s*){3,}|(?:_\s*){3,}|(?:\-\s*){3,})\s*$" attribute="List: Horizontal Rule" column="0" dynamic="1"/><RegExpr String="^\s*$" column="0"/><RegExpr String="^%1%2\s" context="content-list" column="0" dynamic="1" lookAhead="1"/><RegExpr String="^\s*\S" context="#pop" column="0" lookAhead="1"/><RegExpr String="\s*\[[ x]\](?=\s)" attribute="List: Checkbox" context="content-list"/></context><context name="numlist" attribute="Markdown" fallthroughContext="content-list"><RegExpr String="^%1%2\s{2}(?:\s{4}|\t).*$" attribute="List: Code" column="0" dynamic="1"/><RegExpr String="^%1%2\s{2,}>" attribute="Blockquote" context="blockquote-list" column="0" dynamic="1"/><RegExpr String="^%1%2\s{2,}\s*(?:(?:\*\s*){3,}|(?:_\s*){3,}|(?:\-\s*){3,})\s*$" attribute="List: Horizontal Rule" column="0" dynamic="1"/><RegExpr String="^\s*$" column="0"/><RegExpr String="^%1%2\s{2}" context="content-list" column="0" dynamic="1" lookAhead="1"/><RegExpr String="^\s*\S" context="#pop" column="0" lookAhead="1"/></context><context name="numlist2" attribute="Markdown" fallthroughContext="content-list"><RegExpr String="^%1%2\s{3}(?:\s{4}|\t).*$" attribute="List: Code" column="0" dynamic="1"/><RegExpr String="^%1%2\s{3,}>" attribute="Blockquote" context="blockquote-list" column="0" dynamic="1"/><RegExpr String="^%1%2\s{3,}\s*(?:(?:\*\s*){3,}|(?:_\s*){3,}|(?:\-\s*){3,})\s*$" attribute="List: Horizontal Rule" column="0" dynamic="1"/><RegExpr String="^\s*$" column="0"/><RegExpr String="^%1%2\s{3}" context="content-list" column="0" dynamic="1" lookAhead="1"/><RegExpr String="^\s*\S" context="#pop" column="0" lookAhead="1"/></context></contexts><itemDatas><itemData name="Markdown" defStyleNum="dsNormal"/><itemData name="Structure" defStyleNum="dsRegionMarker"/><itemData name="MathMode" defStyleNum="dsRegionMarker" color="#00A000"/><itemData name="Document Headers" defStyleNum="dsOthers"/><itemData name="Blockquote" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="List" defStyleNum="dsSpecialString" bold="1" spellChecking="0"/><itemData name="Number List" defStyleNum="dsSpecialString" spellChecking="0"/><itemData name="List: Horizontal Rule" defStyleNum="dsNormal" bold="1" spellChecking="0"/><itemData name="List: Code" defStyleNum="dsInformation"/><itemData name="List: Checkbox" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Backslash Escape" defStyleNum="dsSpecialChar" spellChecking="0"/></itemDatas></highlighting><general><keywords additionalDeliminator="`"/><comments><comment name="multiLine" start="&lt;!--" end="-->"/></comments></general></language>