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
5.8 KiB
XML
1 line
No EOL
5.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Wesnoth Markup Language" section="Markup" extensions="*.cfg;*.pbl;*.CFG;*.PBL" version="8" kateversion="5.79" author="Zachary Palmer ([email protected]), modif. by Ignacio Riquelme Morelle ([email protected]) and Jonathan Schmidt-Dominé ([email protected])" license="GPL"><highlighting><list name="alerts_wml_utils"><item>po</item><item>wmlindent</item><item>wmllint</item><item>wmlscope</item></list><list name="preprocessor_directive_statements"><item>#else</item><item>#error</item><item>#textdomain</item><item>#undef</item><item>#warning</item></list><list name="preprocessor_block_begin_statements"><item>#define</item><item>#ifdef</item><item>#ifhave</item><item>#ifndef</item><item>#ifnhave</item><item>#ifnver</item><item>#ifver</item></list><list name="preprocessor_block_end_statements"><item>#enddef</item><item>#endif</item></list><contexts><context name="text" attribute="Normal WML Text"><RegExpr String='(_ *)?"' attribute="String" context="string"/><RegExpr String=" *<<" attribute="String" context="luastring" beginRegion="wml_lua"/><keyword String="preprocessor_directive_statements" attribute="Preprocessor" context="preprocessor"/><keyword String="preprocessor_block_begin_statements" attribute="Preprocessor" context="preprocessor" beginRegion="wmlpp_block"/><keyword String="preprocessor_block_end_statements" attribute="Preprocessor" context="preprocessor" endRegion="wmlpp_block"/><DetectChar char="#" attribute="Comment" context="comment"/><DetectChar char="{" attribute="Macro/Include" context="macro" beginRegion="macro_block"/><RegExpr String="\[/\s*\w*\s*\]" attribute="WML Node" endRegion="wml_node"/><RegExpr String="\[\+?\w*\]" attribute="WML Node" beginRegion="wml_node"/><RegExpr String="(\w|,| )+=" attribute="WML Attribute" context="value" lookAhead="1"/><IncludeRules context="variableSubstitutionRule"/><RegExpr String="(\w+|\])\[(?!/)" attribute="Normal WML Text"/></context><context name="macro" attribute="Macro/Include"><DetectChar char="{" attribute="Macro/Include" context="macro" beginRegion="macro_block"/><RegExpr String='(_ *)?"' attribute="Macro String" context="macroString"/><RegExpr String=" *<<" attribute="Macro String" context="luamacrostring" beginRegion="wml_lua"/><DetectChar char="(" attribute="Macro String" context="macroString2" beginRegion="macro_paren_string"/><DetectChar char="}" attribute="Macro/Include" context="#pop" endRegion="macro_block"/><IncludeRules context="variableSubstitutionRule"/></context><context name="variableSubstitutionRule" attribute="Variable Substitution" lineEndContext="#pop"><DetectChar char="$" attribute="Variable Substitution" context="variableSubstitution"/></context><context name="preprocessor" attribute="Preprocessor" lineEndContext="#pop"/><context name="variableSubstitution" attribute="Variable Substitution" lineEndContext="#pop"><DetectChar char="|" attribute="Variable Substitution" context="#pop"/><DetectChar char="$" attribute="Variable Substitution" context="variableSubstitution"/><DetectChar char="[" attribute="Variable Subscript" context="variableSubscript"/><RegExpr String="[^A-Za-z0-9_\.]" attribute="Variable Substitution" context="#pop" lookAhead="1"/></context><context name="comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><keyword String="alerts_wml_utils" attribute="Maintenance script statement"/><IncludeRules context="##Comments"/></context><context name="error" attribute="Error"/><context name="luamacrostring" attribute="Normal WML Text"><StringDetect String=">>" attribute="Macro String" context="#pop" endRegion="wml_lua"/><IncludeRules context="Normal##Lua" includeAttrib="1"/></context><context name="luastring" attribute="Normal WML Text"><StringDetect String=">>" attribute="String" context="#pop" endRegion="wml_lua"/><IncludeRules context="Normal##Lua" includeAttrib="1"/></context><context name="macroString" attribute="Macro String"><DetectChar char='"' attribute="Macro String" context="#pop"/><DetectChar char="{" attribute="Macro/Include" context="macro" beginRegion="macro_block"/><IncludeRules context="variableSubstitutionRule"/><IncludeRules context="##Pango"/></context><context name="macroString2" attribute="Macro String"><DetectChar char=")" attribute="Macro String" context="#pop" endRegion="macro_paren_string"/><DetectChar char="{" attribute="Macro/Include" context="macro" beginRegion="macro_block"/><IncludeRules context="text"/></context><context name="string" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/><DetectChar char="{" attribute="Macro/Include" context="macro"/><IncludeRules context="variableSubstitutionRule"/><IncludeRules context="##Pango"/></context><context name="value" attribute="WML Attribute" lineEndContext="#pop"><DetectChar char="=" attribute="Normal WML Text" context="#pop"/></context><context name="variableSubscript" attribute="Variable Subscript" lineEndContext="error"><DetectChar char="]" attribute="Variable Subscript" context="#pop"/></context></contexts><itemDatas><itemData name="Normal WML Text" defStyleNum="dsNormal"/><itemData name="Maintenance script statement" defStyleNum="dsAlert"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Macro/Include" defStyleNum="dsFunction"/><itemData name="WML Node" defStyleNum="dsKeyword"/><itemData name="WML Attribute" defStyleNum="dsAttribute"/><itemData name="Preprocessor" defStyleNum="dsPreprocessor"/><itemData name="Error" defStyleNum="dsError"/><itemData name="Macro String" defStyleNum="dsChar"/><itemData name="Variable Substitution" defStyleNum="dsDecVal"/><itemData name="Variable Subscript" defStyleNum="dsBaseN"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#" position="afterwhitespace"/></comments><keywords casesensitive="1"/></general></language> |