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]>
1 line
No EOL
4.1 KiB
XML
1 line
No EOL
4.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="FTL" version="6" kateversion="5.62" section="Markup" extensions="*.ftl" license="LGPLv2+" author="Radomir Svancer ([email protected]), Robert Kratky ([email protected]>), Matthias Mailänder ([email protected])"><highlighting><contexts><context name="comment start" attribute="NormalText"><StringDetect String="<!--" attribute="Comment" context="comment end" beginRegion="Comment"/><StringDetect String="<#--" attribute="FTLComment" context="comment ending" beginRegion="FTLComment"/><RegExpr String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" attribute="FTLKeyword" context="syntax start"/><StringDetect String="${" attribute="FTLMark" context="variable end"/><RegExpr String="<\s*\/?\s*[a-zA-Z0-9_]*" attribute="Keyword" context="logic end"/></context><context name="comment ending" attribute="FTLComment"><StringDetect String="-->" attribute="FTLComment" context="#pop" endRegion="FTLComment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="syntax start" attribute="FTLKeyword"><DetectChar char=">" attribute="FTLKeyword" context="#pop"/><DetectChar char='"' attribute="FTLQuot" context="comment string"/><DetectSpaces attribute="FTLIdentifier" context="syntax end"/></context><context name="variable end" attribute="FTLIdentifier"><DetectChar char="}" attribute="FTLMark" context="#pop"/><DetectChar char='"' attribute="FTLQuot" context="comment string"/></context><context name="comment string" attribute="FTLQuot"><DetectChar char='"' attribute="FTLQuot" context="#pop#pop"/></context><context name="comment end" attribute="Comment"><DetectSpaces/><StringDetect String="-->" attribute="Comment" context="#pop" endRegion="Comment"/><StringDetect String="<#--" attribute="FTLComment" context="comment ending" beginRegion="FTLComment"/><RegExpr String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" attribute="FTLKeyword" context="syntax start"/><StringDetect String="${" attribute="FTLMark" context="variable end"/><IncludeRules context="##Comments"/></context><context name="logic" attribute="Types"><RegExpr String="\s*#?[a-zA-Z0-9]*" attribute="Types" context="#pop"/><DetectChar char='"' attribute="Types" context="logic start"/></context><context name="logic end" attribute="Identifier"><DetectChar char=">" attribute="Keyword" context="#pop"/><RegExpr String="\s*=\s*" attribute="NormalText" context="logic"/><StringDetect String="<#--" attribute="FTLComment" context="comment ending" beginRegion="FTLComment"/><RegExpr String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" attribute="FTLKeyword" context="syntax start"/><StringDetect String="${" attribute="FTLMark" context="variable end"/></context><context name="logic start" attribute="Types"><DetectChar char='"' attribute="Types" context="#pop#pop"/><StringDetect String="<#--" attribute="FTLComment" context="comment ending" beginRegion="FTLComment"/><RegExpr String="<\s*\/?\s*[#@][a-zA-Z0-9_]*" attribute="FTLKeyword" context="syntax start"/><StringDetect String="${" attribute="FTLMark" context="variable end"/></context><context name="syntax end" attribute="FTLIdentifier"><DetectChar char=">" attribute="FTLKeyword" context="#pop#pop"/><DetectChar char='"' attribute="FTLQuot" context="comment string"/></context></contexts><itemDatas><itemData name="NormalText" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Identifier" defStyleNum="dsOthers"/><itemData name="Types" defStyleNum="dsDataType"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="FTLComment" defStyleNum="dsDocumentation" bold="0" italic="1"/><itemData name="FTLKeyword" defStyleNum="dsKeyword" color="#0000cc" selColor="#00ff00" bold="1" italic="0"/><itemData name="FTLQuot" defStyleNum="dsOthers" color="#ff0044" selColor="#00ff00" bold="0" italic="0"/><itemData name="FTLIdentifier" defStyleNum="dsOthers" color="#0022bb" selColor="#00ff00" bold="0" italic="0"/><itemData name="FTLMark" defStyleNum="dsOthers" color="#0000cc" selColor="#00ff00" bold="1" italic="1"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="<#--" end="-->" region="FTLComment"/></comments><keywords casesensitive="0"/></general></language> |