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
7.3 KiB
XML
1 line
No EOL
7.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Robot" version="3" kateversion="5.79" section="Scripts" extensions="*.robot" indenter="python" author="Akseli Lahtinen ([email protected])" license="MIT"><highlighting><list name="SettingSectionSettings"><item>Default Tags</item><item>Force Tags</item><item>Keyword Tags</item><item>Library</item><item>Metadata</item><item>Resource</item><item>Suite Setup</item><item>Suite Teardown</item><item>Task Setup</item><item>Task Teardown</item><item>Task Template</item><item>Task Timeout</item><item>Test Setup</item><item>Test Tags</item><item>Test Teardown</item><item>Test Template</item><item>Test Timeout</item><item>Variables</item></list><list name="KeywordSectionSettings"><item>Arguments</item><item>Return</item><item>Setup</item><item>Tags</item><item>Teardown</item><item>Template</item><item>Timeout</item></list><list name="ControlOperators"><item>BREAK</item><item>CONTINUE</item><item>ELSE</item><item>END</item><item>ENUMERATE</item><item>EXCEPT</item><item>FINALLY</item><item>FOR</item><item>IF</item><item>IN</item><item>RANGE</item><item>RETURN</item><item>TRY</item><item>WHILE</item><item>ZIP</item></list><contexts><context name="Normal Text" attribute="Normal Text"><StringDetect String="Documentation" attribute="Setting" context="Multi-Line Comment" beginRegion="RegionComment" firstNonSpace="1"/><RegExpr String="\*{3}\s{0,1}Settings\s{0,1}\*{3}" attribute="Section" context="Settings Section"/><RegExpr String="\*{3}\s{0,1}Variables\s{0,1}\*{3}" attribute="Section"/><RegExpr String="\*{3}\s{0,1}Test Cases\s{0,1}\*{3}" attribute="Section" context="Test Cases Section"/><RegExpr String="\*{3}\s{0,1}Keywords\s{0,1}\*{3}" attribute="Section" context="Keywords Section"/><RegExpr String="\*{3}\s{0,1}Tasks\s{0,1}\*{3}" attribute="Section" context="Tasks Section"/><RegExpr String="\*{3}\s{0,1}Comments\s{0,1}\*{3}" attribute="Section" context="Comments Section"/><DetectChar char="#" attribute="Comment" context="Comment"/><AnyChar String="[]=().|" attribute="Symbol"/><RegExpr String="\s{2,}\[" attribute="Symbol" context="KeywordSettings"/><RegExpr String="[\$@&]\{\w*\}" attribute="Variable" context="#pop"/><RegExpr String="[\$@&]\w*" attribute="Variable"/><RegExpr String=".*BuiltIn\." attribute="Setting"/><AnyChar String=""'" attribute="String" context="String"/><keyword String="ControlOperators" attribute="Control Flow" context="#pop"/></context><context name="Codeblock" attribute="Normal Text"><keyword String="ControlOperators" attribute="Control Flow"/><DetectChar char="#" attribute="Comment" context="Comment"/><AnyChar String="[]=()." attribute="Symbol"/><RegExpr String="\s{2,}\[" attribute="Symbol" context="KeywordSettings"/><RegExpr String="[\$@&]\{{0,1}\w*\}{0,1}" attribute="Variable"/><AnyChar String=""'" attribute="String" context="String"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="String" attribute="String" lineEndContext="#pop"><AnyChar String=""'" attribute="String" context="#pop"/></context><context name="KeywordSettings" attribute="Normal Text" lineEndContext="#pop"><DetectChar char="[" attribute="Symbol"/><RegExpr String="[\$@&]\{{0,1}\w*\}{0,1}" attribute="Variable"/><RegExpr String="\]\s[^\$]([\w ]*)$" attribute="Symbol" context="StringAfterKeywordSettings" lookAhead="1"/><keyword String="KeywordSectionSettings" attribute="Setting"/><StringDetect String="Documentation" attribute="Setting" context="Indented Multi-Line Comment" insensitive="1"/><DetectChar char="]" attribute="Symbol" context="#pop"/></context><context name="Multi-Line Comment" attribute="Comment"><RegExpr String="^\s{0,}[^\.]" attribute="Comment" context="#pop" endRegion="RegionComment" column="0" lookAhead="1"/></context><context name="Comments Section" attribute="Comment"><DetectChar char="*" attribute="Section" context="#pop" column="0" lookAhead="1"/></context><context name="Indented Multi-Line Comment" attribute="Comment"><AnyChar String="[]" attribute="Symbol"/><RegExpr String="^\s{0,}[\.]{3}" attribute="Comment" column="0"/><RegExpr String="^\s{0,}[^\.]" attribute="Comment" context="#pop" column="0" lookAhead="1"/></context><context name="Keyword With Variable" attribute="Keyword" lineEndContext="#pop"><RangeDetect char1="}" char="$" attribute="Variable"/></context><context name="Keywords Section" attribute="Normal Text"><DetectChar char="*" attribute="Section" context="#pop" column="0" lookAhead="1"/><RegExpr String="^[\w]" attribute="Keyword" context="Keyword With Variable" column="0"/><IncludeRules context="Codeblock"/></context><context name="Settings Section" attribute="Normal Text"><StringDetect String="Documentation" attribute="Setting" context="Multi-Line Comment" beginRegion="RegionComment"/><IncludeRules context="SettingsValues"/><DetectChar char="*" attribute="Section" context="#pop" column="0" lookAhead="1"/><DetectChar char="#" attribute="Comment" context="Comment"/><AnyChar String="[]=().|" attribute="Symbol"/><RegExpr String="[\$@&]\{\w*\}" attribute="Variable"/><RegExpr String=".*BuiltIn\." attribute="Setting"/><AnyChar String=""'" attribute="String" context="String"/></context><context name="SettingsValues" attribute="Setting" lineEndContext="#pop"><RegExpr String="^(Library|Resource|Variables|Metadata|Suite Setup|Suite Teardown|Test Tags|Force Tags|Keyword Tags|Test Setup|Test Teardown|Test Template|Test Timeout|Task Setup|Default Tags|Task Teardown|Task Template|Task Timeout) {0,}" attribute="Setting" column="0"/></context><context name="StringAfterKeywordSettings" attribute="Symbol"><StringDetect String="%1" attribute="String" dynamic="1"/><RegExpr String="^\s{0,}[\.]{3}.*$" attribute="String" column="0"/><RegExpr String="^\s{0,}[^\.]" attribute="String" context="#pop" column="0" lookAhead="1"/></context><context name="Task With Variable" attribute="Task" lineEndContext="#pop"><RangeDetect char1="}" char="$" attribute="Variable"/></context><context name="Tasks Section" attribute="Normal Text"><DetectChar char="*" attribute="Section" context="#pop" column="0" lookAhead="1"/><RegExpr String="^[\w]" attribute="Task" context="Task With Variable" column="0"/><IncludeRules context="Codeblock"/></context><context name="Test Case With Variable" attribute="Test Case" lineEndContext="#pop"><RangeDetect char1="}" char="$" attribute="Variable"/></context><context name="Test Cases Section" attribute="Normal Text"><DetectChar char="*" attribute="Section" context="#pop" column="0" lookAhead="1"/><RegExpr String="^[\w]" attribute="Test Case" context="Test Case With Variable" column="0"/><IncludeRules context="Codeblock"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Setting" defStyleNum="dsBuiltIn"/><itemData name="Test Case" defStyleNum="dsFunction"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Task" defStyleNum="dsExtension"/><itemData name="String" defStyleNum="dsString"/><itemData name="Section" defStyleNum="dsSpecialString"/><itemData name="Variable" defStyleNum="dsVariable"/><itemData name="Control Flow" defStyleNum="dsControlFlow"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments><keywords casesensitive="1"/><folding indentationsensitive="1"/></general></language> |