Damson/assets/syntax/fluent.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
4.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Fluent" version="1" kateversion="5.62" section="Markup" extensions="*.ftl" mimetype="text/x-fluent-translation" author="Fabian Wunsch ([email protected])" license="MIT" priority="-1"><highlighting><contexts><context name="Normal" attribute="Normal Text"><StringDetect String="###" context="FileComment" column="0"/><StringDetect String="##" context="StandaloneComment" column="0"/><DetectChar char="#" context="MessageComment" column="0"/><RegExpr String="^([a-zA-Z0-9_-]+)" context="Identifier" column="0"/><DetectSpaces/></context><context name="Error" attribute="Error" lineEndContext="#pop"/><context name="MessageComment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="SingleLineText" attribute="Text" lineEndContext="#pop"><DetectIdentifier/><DetectChar char="{" context="Placeable"/></context><context name="Expression" attribute="Normal Text" lineEndContext="#pop"><DetectChar char='"' context="Quoted"/><RegExpr String="-?\d+(?:\.\d+)?" attribute="Number"/><RegExpr String="(?:[a-zA-Z0-9_-]+\s*\()" context="Function"/><RegExpr String="(?:\$[a-zA-Z0-9_-]+)" attribute="Variable"/><RegExpr String="(?:[a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_-]+)?)"/><DetectChar char="{" context="Placeable"/></context><context name="MultiLineText" attribute="Text"><DetectSpaces/><RegExpr String="^[^ ]" context="#pop#pop" column="0" lookAhead="1"/><RegExpr String="(?&lt;=[ ])(?:\.[a-zA-Z0-9_-])" context="AttributeIdentifier" lookAhead="1"/><IncludeRules context="SingleLineText"/></context><context name="Placeable" attribute="Placeable" fallthroughContext="#pop!Error"><DetectSpaces/><DetectChar char="}" attribute="Placeable" context="#pop"/><RegExpr String="(?:\*\[(?:[a-zA-Z0-9_-]+|(?:-?\d+(?:\.\d+)?))\])" attribute="DefaultIdentifier" context="SingleLineText"/><RegExpr String="(?:\[(?:[a-zA-Z0-9_-]+|(?:-?\d+(?:\.\d+)?))\])" attribute="Identifier" context="SingleLineText"/><StringDetect String="->"/><IncludeRules context="Expression"/></context><context name="AttributeIdentifier" attribute="Identifier" lineEndContext="#pop"><RegExpr String="\s*=\s*" attribute="Normal Text" context="#pop#pop!MultiLineText"/><DetectChar char=" " context="#pop#pop!Error"/></context><context name="FileComment" attribute="DocumentationComment" lineEndContext="#pop"><IncludeRules context="MessageComment"/></context><context name="Function" attribute="Function" fallthroughContext="#pop!Error" lineEndContext="#pop!Error"><DetectSpaces/><DetectChar char=")" attribute="Function" context="#pop"/><RegExpr String="(?:[a-zA-Z0-9_-]+\s*:\s*)"/><DetectChar char=","/><IncludeRules context="Expression"/></context><context name="Identifier" attribute="Identifier" fallthroughContext="#pop!Error" lineEndContext="#pop"><RegExpr String="\s*=\s*" attribute="Normal Text" context="MultiLineText"/></context><context name="Quoted" attribute="Quoted" lineEndContext="#pop!Error"><DetectIdentifier/><RegExpr String='\\(?:"|\\|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{6})'/><DetectChar char="\" context="#pop!Error"/><DetectChar char='"' attribute="Quoted" context="#pop"/></context><context name="StandaloneComment" attribute="DocumentationComment" lineEndContext="#pop"><IncludeRules context="MessageComment"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/><itemData name="Identifier" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="DefaultIdentifier" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Text" defStyleNum="dsString"/><itemData name="Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Placeable" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="DocumentationComment" defStyleNum="dsDocumentation"/><itemData name="Quoted" defStyleNum="dsString"/><itemData name="Variable" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Number" defStyleNum="dsDecVal" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments><folding indentationsensitive="1"/></general></language>