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
6.8 KiB
XML
1 line
No EOL
6.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Go" version="10" kateversion="5.79" section="Sources" indenter="cstyle" extensions="*.go" author="Miquel Sabaté ([email protected])" license="GPLv2+"><highlighting><list name="keywords"><item>chan</item><item>const</item><item>func</item><item>import</item><item>interface</item><item>map</item><item>package</item><item>range</item><item>struct</item><item>type</item><item>var</item></list><list name="controlflow"><item>break</item><item>case</item><item>continue</item><item>default</item><item>defer</item><item>else</item><item>fallthrough</item><item>for</item><item>go</item><item>goto</item><item>if</item><item>return</item><item>select</item><item>switch</item></list><list name="types"><item>any</item><item>bool</item><item>byte</item><item>comparable</item><item>complex128</item><item>complex64</item><item>error</item><item>float32</item><item>float64</item><item>int</item><item>int16</item><item>int32</item><item>int64</item><item>int8</item><item>rune</item><item>string</item><item>uint</item><item>uint16</item><item>uint32</item><item>uint64</item><item>uint8</item><item>uintptr</item></list><list name="builtin"><item>append</item><item>cap</item><item>close</item><item>complex</item><item>copy</item><item>delete</item><item>imag</item><item>len</item><item>make</item><item>new</item><item>panic</item><item>print</item><item>println</item><item>real</item><item>recover</item></list><list name="predeclared"><item>false</item><item>iota</item><item>nil</item><item>true</item></list><contexts><context name="normal" attribute="Normal Text"><DetectSpaces/><keyword String="keywords" attribute="Keyword"/><keyword String="controlflow" attribute="Control Flow"/><keyword String="predeclared" attribute="Predeclared Identifier"/><keyword String="types" attribute="Data Type"/><keyword String="builtin" attribute="Builtin Function"/><DetectIdentifier/><DetectChar char="{" attribute="Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Symbol" endRegion="Brace1"/><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/><RegExpr String="\.?[0-9]" context="Number" lookAhead="1"/><AnyChar String=":!%&()+,-/.*<=>?[]|~^;" attribute="Symbol"/><DetectChar char='"' attribute="String" context="String"/><DetectChar char="'" attribute="Char" context="Char"/><DetectChar char="`" attribute="String" context="Multiline String"/></context><context name="NumberSuffix" attribute="Error" fallthroughContext="NumericSuffixError" lineEndContext="#pop#pop"><DetectChar char="i" attribute="Suffix" context="NumericSuffixError"/><DetectChar char="_" attribute="Error"/></context><context name="FindEscape" attribute="String" lineEndContext="#pop"><DetectChar char="\" context="EscapedChar" lookAhead="1"/></context><context name="NumericSuffixError" attribute="Error" fallthroughContext="#pop#pop#pop" lineEndContext="#pop#pop#pop"><RegExpr String="[._0-9A-Za-z]+" attribute="Error" context="#pop#pop#pop"/></context><context name="Char" attribute="Char" lineEndContext="#pop"><DetectChar char="'" attribute="Char" context="#pop"/><IncludeRules context="FindEscape"/></context><context name="Commentar 1" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Commentar 2" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="EscapedChar" attribute="String" lineEndContext="#pop"><RegExpr String="\\[abfnrtv\\'"]|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|\\[0-3][0-7]{2}" attribute="String Char" context="#pop"/><RegExpr String="\\[xuU][0-9a-fA-F]*|\\[0-7]{1,3}|\\" attribute="Error" context="#pop"/></context><context name="IntStartsWith0" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="0[xX](?:_?[0-9A-Fa-f]++)*+" attribute="Hex" context="NumberSuffix"/><RegExpr String="0[Bb](?:_?[01]++)*+" attribute="Binary" context="NumberSuffix"/><RegExpr String="0[Oo]?(?:_?[0-7]++)*+" attribute="Octal" context="NumberSuffix"/><DetectChar char="0" attribute="Decimal" context="NumberSuffix"/></context><context name="Multiline String" attribute="String"><DetectChar char="`" attribute="String" context="#pop"/></context><context name="Number" attribute="Normal Text" lineEndContext="#pop"><WordDetect String="0" attribute="Decimal" context="NumberSuffix" weakDeliminator="."/><RegExpr String="\.(?:[0-9](?:_?[0-9]++)*+)(?:[eE][+-]?(?:[0-9](?:_?[0-9]++)*+))?|0[xX](?:\.(?:[0-9A-Fa-f](?:_?[0-9A-Fa-f]++)*+)(?:[pP][-+]?(?:[0-9](?:_?[0-9]++)*+))?|_?(?:[0-9A-Fa-f](?:_?[0-9A-Fa-f]++)*+)(?:(?:[pP][-+]?(?:[0-9](?:_?[0-9]++)*+))|\.(?:[0-9A-Fa-f](?:_?[0-9A-Fa-f]++)*+)?(?:[pP][-+]?(?:[0-9](?:_?[0-9]++)*+))?))|(?:[0-9](?:_?[0-9]++)*+)(?:(?:[eE][+-]?(?:[0-9](?:_?[0-9]++)*+))|\.(?:[0-9](?:_?[0-9]++)*+)?(?:[eE][+-]?(?:[0-9](?:_?[0-9]++)*+))?)" attribute="Float" context="NumberSuffix"/><DetectChar char="0" context="#pop!IntStartsWith0" lookAhead="1"/><RegExpr String="(?:[0-9](?:_?[0-9]++)*+)" attribute="Decimal" context="NumberSuffix"/></context><context name="String" attribute="String" lineEndContext="#pop"><DetectChar char='"' attribute="String" context="#pop"/><IncludeRules context="FindEscape"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Predeclared Identifier" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Builtin Function" defStyleNum="dsBuiltIn" spellChecking="0"/><itemData name="Data Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="String Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Binary" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Octal" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Hex" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Suffix" defStyleNum="dsBuiltIn" spellChecking="0"/><itemData name="Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1" additionalDeliminator="'""/></general></language> |