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
10 KiB
XML
1 line
No EOL
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="CartoCSS MSS" version="6" kateversion="5.62" section="Markup" extensions="*.mss" author="Lukas Sommer" license="CC0 Public Domain Dedication, version 1.0, as published by Creative Commons"><highlighting><list name="list_colornames"><item>aliceblue</item><item>antiquewhite</item><item>aqua</item><item>aquamarine</item><item>azure</item><item>beige</item><item>bisque</item><item>black</item><item>blanchedalmond</item><item>blue</item><item>blueviolet</item><item>brown</item><item>burlywood</item><item>cadetblue</item><item>chartreuse</item><item>chocolate</item><item>coral</item><item>cornflowerblue</item><item>cornsilk</item><item>crimson</item><item>cyan</item><item>darkblue</item><item>darkcyan</item><item>darkgoldenrod</item><item>darkgray</item><item>darkgreen</item><item>darkgrey</item><item>darkkhaki</item><item>darkmagenta</item><item>darkolivegreen</item><item>darkorange</item><item>darkorchid</item><item>darkred</item><item>darksalmon</item><item>darkseagreen</item><item>darkslateblue</item><item>darkslategrey</item><item>darkturquoise</item><item>darkviolet</item><item>deeppink</item><item>deepskyblue</item><item>dimgray</item><item>dimgrey</item><item>dodgerblue</item><item>firebrick</item><item>floralwhite</item><item>forestgreen</item><item>fuchsia</item><item>gainsboro</item><item>ghostwhite</item><item>gold</item><item>goldenrod</item><item>gray</item><item>green</item><item>greenyellow</item><item>grey</item><item>honeydew</item><item>hotpink</item><item>indianred</item><item>indigo</item><item>ivory</item><item>khaki</item><item>lavender</item><item>lavenderblush</item><item>lawngreen</item><item>lemonchiffon</item><item>lightblue</item><item>lightcoral</item><item>lightcyan</item><item>lightgoldenrodyellow</item><item>lightgray</item><item>lightgreen</item><item>lightgrey</item><item>lightpink</item><item>lightsalmon</item><item>lightseagreen</item><item>lightskyblue</item><item>lightslategray</item><item>lightslategrey</item><item>lightsteelblue</item><item>lightyellow</item><item>lime</item><item>limegreen</item><item>linen</item><item>magenta</item><item>maroon</item><item>mediumaquamarine</item><item>mediumblue</item><item>mediumorchid</item><item>mediumpurple</item><item>mediumseagreen</item><item>mediumslateblue</item><item>mediumspringgreen</item><item>mediumturquoise</item><item>mediumvioletred</item><item>midnightblue</item><item>mintcream</item><item>mistyrose</item><item>moccasin</item><item>navajowhite</item><item>navy</item><item>oldlace</item><item>olive</item><item>olivedrab</item><item>orange</item><item>orangered</item><item>orchid</item><item>palegoldenrod</item><item>palegreen</item><item>paleturquoise</item><item>palevioletred</item><item>papayawhip</item><item>peachpuff</item><item>peru</item><item>pink</item><item>plum</item><item>powderblue</item><item>purple</item><item>red</item><item>rosybrown</item><item>royalblue</item><item>saddlebrown</item><item>salmon</item><item>sandybrown</item><item>seagreen</item><item>seashell</item><item>sienna</item><item>silver</item><item>skyblue</item><item>slateblue</item><item>slategray</item><item>slategrey</item><item>snow</item><item>springgreen</item><item>steelblue</item><item>tan</item><item>teal</item><item>thistle</item><item>tomato</item><item>transparent</item><item>turquoise</item><item>violet</item><item>wheat</item><item>white</item><item>whitesmoke</item><item>yellow</item><item>yellowgreen</item></list><contexts><context name="context_default" attribute="Mapnik Symbolizer Parameter"><DetectSpaces/><StringDetect String="/*" attribute="Comment" context="context_comment_multiline" beginRegion="region_comment" lookAhead="1"/><StringDetect String="//" attribute="Comment" context="context_comment_singleline" lookAhead="1"/><DetectChar char="{" attribute="Operator" beginRegion="region_braces"/><DetectChar char="}" attribute="Operator" endRegion="region_braces"/><DetectChar char="[" attribute="Operator" context="context_filter_attribute"/><RegExpr String="::([\w_-]+)" attribute="Attachment"/><DetectChar char=":" attribute="Operator" context="context_expression"/><RegExpr String="(@([\w_-]+))" attribute="CartoCSS Variable"/><RegExpr String="([\w_-]+)/" attribute="Named instances"/><RegExpr String="#([\w_-]+)" attribute="Layer ID"/><RegExpr String="\.([\w_-]+)" attribute="Class"/></context><context name="context_include_escape_characters" attribute="Normal String" lineEndContext="#pop"><RegExpr String="(\\[abfnrtv"'\\])|(\\u[0-9a-fA-F]{4})|(\\U[0-9a-fA-F]{8})" attribute="Escape Sequenze"/><RegExpr String="\\[uU]" attribute="Error"/></context><context name="context_normalstring_doublequote" attribute="Normal String" lineEndContext="#pop"><DetectChar char='"' attribute="Normal String" context="#pop"/><IncludeRules context="context_include_escape_characters"/></context><context name="context_normalstring_singlequote" attribute="Normal String" lineEndContext="#pop"><DetectChar char="'" attribute="Normal String" context="#pop"/><IncludeRules context="context_include_escape_characters"/></context><context name="context_comment_multiline" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="region_comment"/><IncludeRules context="##Comments"/></context><context name="context_comment_singleline" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="context_expression" attribute="Keyword"><DetectSpaces/><RangeDetect char1="]" char="[" attribute="Data Field"/><RegExpr String="(\-?((\d+(\.\d+)?)|(\.\d+))%?)" attribute="Number"/><AnyChar String=":,!/*-+=><()%[]" attribute="Operator"/><RegExpr String="(@([\w_-]+))" attribute="CartoCSS Variable"/><RegExpr String="([\w_-]+)(?=\()" attribute="Function"/><RegExpr String="((#[\dabcdefABCDEF]{3}|#[\dabcdefABCDEF]{6})(?=(\W|$)))" attribute="Color"/><keyword String="list_colornames" attribute="Color"/><DetectChar char='"' attribute="Expression String" context="context_expressionstring_doublequote"/><DetectChar char="'" attribute="Expression String" context="context_expressionstring_singlequote"/><DetectChar char=";" attribute="Operator" context="#pop"/><DetectChar char="}" attribute="Operator" context="#pop" endRegion="region_braces"/></context><context name="context_expressionstring_doublequote" attribute="Expression String" lineEndContext="#pop"><DetectChar char='"' attribute="Expression String" context="#pop"/><RangeDetect char1="]" char="[" attribute="Data Field"/><RegExpr String="(@([\w_-]+))" attribute="Mapnik Render-Time Variable"/><DetectChar char="'" attribute="Normal String" context="context_normalstring_singlequote"/></context><context name="context_expressionstring_singlequote" attribute="Expression String" lineEndContext="#pop"><DetectChar char="'" attribute="Expression String" context="#pop"/><RangeDetect char1="]" char="[" attribute="Data Field"/><RegExpr String="(@([\w_-]+))" attribute="Mapnik Render-Time Variable"/><DetectChar char='"' attribute="Normal String" context="context_normalstring_doublequote"/></context><context name="context_filter_attribute" attribute="Data Field"><DetectSpaces/><RegExpr String="(@([\w_-]+))" attribute="CartoCSS Variable"/><AnyChar String=":,!/*-+=><()%" attribute="Operator" context="context_filter_rule"/><WordDetect String="zoom" attribute="Keyword" insensitive="1"/><DetectChar char='"' attribute="Data Field" context="context_filter_attribute_doublequote"/><DetectChar char="'" attribute="Data Field" context="context_filter_attribute_singlequote"/><DetectChar char="]" attribute="Operator" context="#pop"/></context><context name="context_filter_attribute_doublequote" attribute="Data Field" lineEndContext="#pop"><DetectChar char='"' context="#pop"/></context><context name="context_filter_attribute_singlequote" attribute="Data Field" lineEndContext="#pop"><DetectChar char="'" context="#pop"/></context><context name="context_filter_rule" attribute="Keyword"><DetectSpaces/><RegExpr String="(\-?((\d+(\.\d+)?)|(\.\d+))%?)" attribute="Number"/><AnyChar String=":,!/*-+=><()%" attribute="Operator"/><RegExpr String="(@([\w_-]+))" attribute="CartoCSS Variable"/><WordDetect String="zoom" attribute="Keyword" insensitive="1"/><RegExpr String="([\w_-]+)(?=\()" attribute="Function"/><RegExpr String="((#[\dabcdefABCDEF]{3}|#[\dabcdefABCDEF]{6})(?=(\W|$)))" attribute="Color"/><keyword String="list_colornames" attribute="Color"/><DetectChar char='"' attribute="Normal String" context="context_normalstring_doublequote"/><DetectChar char="'" attribute="Normal String" context="context_normalstring_singlequote"/><DetectChar char="]" attribute="Operator" context="#pop#pop"/></context></contexts><itemDatas><itemData name="Class" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Layer ID" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Attachment" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Named instances" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Mapnik Symbolizer Parameter" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Number" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Color" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Expression String" defStyleNum="dsSpecialString" spellChecking="0"/><itemData name="Mapnik Render-Time Variable" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Normal String" defStyleNum="dsString" spellChecking="0"/><itemData name="Escape Sequenze" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Data Field" defStyleNum="dsVariable" spellChecking="0"/><itemData name="CartoCSS Variable" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/" region="region_comment"/></comments><keywords casesensitive="1" weakDeliminator="-"/></general></language> |