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
14 KiB
XML
1 line
No EOL
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Kotlin" alternativeNames="KT" version="12" kateversion="5.62" section="Sources" extensions="*.kt;*.kts" license="LGPLv2+" author="Sergey Mashkov ([email protected])" style="cstyle" indenter="cstyle"><highlighting><list name="keywords"><item>abstract</item><item>annotation</item><item>as</item><item>by</item><item>class</item><item>companion</item><item>const</item><item>constructor</item><item>crossinline</item><item>data</item><item>enum</item><item>external</item><item>final</item><item>fun</item><item>get</item><item>import</item><item>in</item><item>infix</item><item>inline</item><item>inner</item><item>interface</item><item>internal</item><item>is</item><item>lateinit</item><item>noinline</item><item>object</item><item>open</item><item>operator</item><item>out</item><item>override</item><item>package</item><item>private</item><item>protected</item><item>public</item><item>reified</item><item>return</item><item>sealed</item><item>set</item><item>tailrec</item><item>throw</item><item>typealias</item><item>typeof</item><item>val</item><item>var</item><item>vararg</item><item>where</item></list><list name="controlFlowKeyword"><item>break</item><item>catch</item><item>continue</item><item>do</item><item>else</item><item>finally</item><item>for</item><item>if</item><item>try</item><item>when</item><item>while</item><item>yield</item></list><list name="predeclared"><item>false</item><item>null</item><item>super</item><item>this</item><item>true</item></list><list name="types"><item>Boolean</item><item>Byte</item><item>Char</item><item>Double</item><item>Float</item><item>Int</item><item>Long</item><item>Nothing</item><item>Short</item><item>String</item><item>Unit</item><item>dynamic</item></list><contexts><context name="Start" attribute="Normal Text" fallthroughContext="Normal"><StringDetect String="#!" attribute="Comment" context="Shebang"/></context><context name="Comment" attribute="Normal Text"><StringDetect String="//" attribute="Comment" context="CommentSingleLine"/><StringDetect String="/*" attribute="Comment" context="CommentMultiline" beginRegion="Comment"/></context><context name="TypeParameters" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><DetectChar char=":" attribute="Symbol" context="TypeName"/><DetectChar char="*" attribute="Symbol"/><DetectChar char=">" attribute="Symbol" context="#pop"/><DetectChar char="<" attribute="Symbol" context="TypeParameters"/><DetectIdentifier attribute="Data Type" context="DataTypeSuffix"/><IncludeRules context="Comment"/></context><context name="TypeName" attribute="Normal Text"><AnyChar String=",*" attribute="Symbol" context="#pop"/><DetectChar char="(" attribute="Symbol" context="FunctionType"/><StringDetect String="->" attribute="Symbol"/><DetectIdentifier attribute="Data Type" context="#pop!DataTypeSuffix"/><IncludeRules context="Comment"/></context><context name="DataTypeSuffix" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><DetectChar char="?" attribute="Symbol" context="#pop"/><IncludeRules context="Comment"/></context><context name="Normal" attribute="Normal Text"><DetectSpaces/><DetectChar char="." attribute="Symbol" context="Dot" lookAhead="1"/><DetectChar char="{" attribute="Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Symbol" endRegion="Brace1"/><DetectChar char="@" attribute="Annotation" context="Annotation"/><IncludeRules context="Comment"/><AnyChar String="()[]&|+,-/*<=>;!%?:~^" attribute="Symbol"/><AnyChar String="0123456789" context="Number" lookAhead="1"/><DetectChar char='"' context="String" lookAhead="1"/><DetectChar char="'" context="Char" lookAhead="1"/><WordDetect String="val" attribute="Keyword" context="VariableDeclaration"/><WordDetect String="var" attribute="Keyword" context="VariableDeclaration"/><WordDetect String="fun" attribute="Keyword" context="FunctionDeclaration"/><WordDetect String="package" attribute="Keyword" context="Imports"/><WordDetect String="import" attribute="Keyword" context="Imports"/><WordDetect String="object" attribute="Keyword" context="TypeDeclaration"/><WordDetect String="class" attribute="Keyword" context="TypeDeclaration"/><WordDetect String="interface" attribute="Keyword" context="TypeDeclaration"/><keyword String="predeclared" attribute="Keyword"/><keyword String="keywords" attribute="Keyword"/><keyword String="controlFlowKeyword" attribute="ControlFlowKeyword"/><keyword String="types" attribute="Keyword"/><DetectIdentifier attribute="Normal Text"/></context><context name="Parameters" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><DetectChar char=")" attribute="Symbol" context="#pop"/><DetectChar char=":" attribute="Symbol" context="TypeName"/><DetectChar char="=" attribute="Symbol" context="Expression"/><DetectIdentifier attribute="Variable"/><DetectChar char="," attribute="Symbol"/><IncludeRules context="Comment"/></context><context name="TypeDeclaration" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><DetectChar char="<" attribute="Symbol" context="TypeParameters"/><DetectChar char="(" attribute="Symbol" context="Parameters"/><DetectChar char=":" attribute="Symbol" context="SuperTypes"/><DetectChar char="{" attribute="Symbol" context="#pop" lookAhead="1"/><IncludeRules context="Comment"/></context><context name="Annotation" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><DetectIdentifier attribute="Annotation"/><DetectChar char=":" attribute="Symbol"/><RangeDetect char1="]" char="[" attribute="Annotation" context="#pop"/><IncludeRules context="Comment"/></context><context name="Char" attribute="Normal Text"><HlCChar attribute="Char" context="#pop"/><RegExpr String="'\\u[0-9a-fA-F]{4}'" attribute="Char" context="#pop"/><RegExpr String="'(\\(u[0-9a-fA-F]*|.))?'?" attribute="Error" context="#pop"/></context><context name="CommentMultiline" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><StringDetect String="/*" attribute="Comment" context="CommentMultiline" beginRegion="Comment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Dot" attribute="Normal Text"><IncludeRules context="FindFloat"/><DetectChar char="." attribute="Symbol" context="#pop"/></context><context name="FindFloat" attribute="Normal Text"><RegExpr String="(\b(?:[0-9]++(_++[0-9]++)*+)(\.(((?:[0-9]++(_++[0-9]++)*+)(?:[eE][-+]?(?:[0-9]++(_++[0-9]++)*+))?+|(?:[eE][-+]?(?:[0-9]++(_++[0-9]++)*+)))[fF]?\b|[fF]\b)?|(?:[eE][-+]?(?:[0-9]++(_++[0-9]++)*+))[fF]?\b|[fF]\b)|\.(?:[0-9]++(_++[0-9]++)*+)(?:[eE][-+]?(?:[0-9]++(_++[0-9]++)*+))?[fF]?\b)|\b0[xX]((?:[0-9a-fA-F]++(_++[0-9a-fA-F]++)*+)\.?+(?:[0-9a-fA-F]++(_++[0-9a-fA-F]++)*+)?+|\.(?:[0-9a-fA-F]++(_++[0-9a-fA-F]++)*+)?)[pP][-+]?(?:[0-9]++(_++[0-9]++)*+)[fF]?\b" attribute="Float" context="#pop"/></context><context name="FindSubExpression" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><AnyChar String="({" attribute="Symbol" context="ExpressionInner"/><DetectChar char="<" context="MaybeTypeParameters" lookAhead="1"/><DetectChar char="." attribute="Symbol" context="Dot" lookAhead="1"/><AnyChar String="0123456789" context="Number" lookAhead="1"/><DetectChar char='"' context="String" lookAhead="1"/><DetectChar char="'" context="Char" lookAhead="1"/><IncludeRules context="Comment"/><DetectIdentifier attribute="Normal Text"/></context><context name="Imports" attribute="Normal Text" lineEndContext="#pop"><AnyChar String=".*" attribute="Symbol"/><WordDetect String="as" attribute="Keyword" context="TypeName"/><DetectIdentifier attribute="Imports"/><DetectChar char=";" attribute="Symbol" context="#pop"/><IncludeRules context="Comment"/></context><context name="Interpolation" attribute="String"><StringDetect String="${" attribute="String Interpolation" context="#pop!InInterpolation"/><DetectChar char="$" attribute="String Interpolation" context="#pop!Variable"/></context><context name="Number" attribute="Normal Text"><IncludeRules context="FindFloat"/><RegExpr String="\b0[xX](?:[0-9a-fA-F]++(_++[0-9a-fA-F]++)*+)[lL]?\b" attribute="Hex" context="#pop"/><RegExpr String="\b0[bB][01]++(_++[01]++)*+[uUlL]?\b" attribute="Binary" context="#pop"/><RegExpr String="\b(0|[1-9][0-9]*+(_++[0-9_]++)*+)[uUlL]?\b" attribute="Decimal" context="#pop"/><AnyChar String="0123456789" attribute="Error" context="#pop"/></context><context name="String" attribute="String" lineEndContext="#pop"><StringDetect String='"""' attribute="String" context="#pop!MultiLineString" beginRegion="MultiLineString"/><DetectChar char='"' attribute="String" context="#pop!SingleLineString"/></context><context name="StringEscapedChar" attribute="String" lineEndContext="#pop"><HlCStringChar attribute="String Char" context="#pop"/><StringDetect String="\$" attribute="String Char" context="#pop"/><RegExpr String="\\u[0-9a-fA-F]{4}" attribute="String Char" context="#pop"/><RegExpr String="\\(u[0-9a-fA-F]*|.)?" attribute="Error" context="#pop"/></context><context name="VariableDeclaration" attribute="Normal Text"><DetectIdentifier attribute="Variable" context="#pop"/><IncludeRules context="Comment"/></context><context name="CommentSingleLine" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Expression" attribute="Normal Text"><DetectChar char=")" attribute="Symbol" context="#pop" lookAhead="1"/><DetectChar char="}" attribute="Error" context="#pop"/><DetectChar char="," attribute="Symbol" context="#pop"/><IncludeRules context="FindSubExpression"/></context><context name="ExpressionInner" attribute="Normal Text"><AnyChar String=")}" attribute="Symbol" context="#pop"/><IncludeRules context="FindSubExpression"/></context><context name="FunctionDeclaration" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><DetectChar char="@" attribute="Annotation" context="Annotation"/><DetectChar char="." attribute="Symbol"/><DetectChar char="(" attribute="Symbol" context="Parameters"/><DetectChar char="<" attribute="Symbol" context="TypeParameters"/><DetectChar char=":" attribute="Symbol" context="TypeName"/><AnyChar String="{=" attribute="Symbol" context="#pop" lookAhead="1"/><DetectIdentifier attribute="Function"/><IncludeRules context="Comment"/></context><context name="FunctionType" attribute="Normal Text"><DetectChar char=")" attribute="Symbol" context="#pop"/><DetectIdentifier attribute="Data Type" context="DataTypeSuffix"/><StringDetect String="->" attribute="Symbol"/><DetectChar char="," attribute="Symbol"/><IncludeRules context="Comment"/></context><context name="InInterpolation" attribute="String Interpolation"><DetectChar char="}" attribute="String Interpolation" context="#pop"/><IncludeRules context="Normal"/></context><context name="MaybeTypeParameters" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="<\w" context="#pop!TypeParameters" lookAhead="1"/><DetectChar char="<" attribute="Symbol" context="#pop"/><IncludeRules context="Comment"/></context><context name="MultiLineString" attribute="String"><DetectChar char="\" context="StringEscapedChar" lookAhead="1"/><DetectChar char="$" context="Interpolation" lookAhead="1"/><DetectChar char='"' context="MultiLineStringFinal" lookAhead="1"/></context><context name="MultiLineStringFinal" attribute="String"><StringDetect String='""""' context="MultiLineStringNoFinal" lookAhead="1"/><StringDetect String='"""' attribute="String" context="#pop#pop" endRegion="MultiLineString"/><StringDetect String='""' attribute="String" context="#pop"/><DetectChar char='"' attribute="String" context="#pop"/></context><context name="MultiLineStringNoFinal" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/></context><context name="Shebang" attribute="Normal Text" lineEndContext="#pop!Normal"/><context name="SingleLineString" attribute="String" lineEndContext="#pop"><DetectChar char="\" context="StringEscapedChar" lookAhead="1"/><DetectChar char="$" context="Interpolation" lookAhead="1"/><DetectChar char='"' attribute="String" context="#pop"/></context><context name="SuperTypes" attribute="Normal Text"><keyword String="keywords" attribute="Keyword" context="#pop#pop" lookAhead="1"/><DetectChar char="," attribute="Symbol"/><DetectChar char="{" attribute="Symbol" context="#pop" lookAhead="1"/><DetectChar char="(" attribute="Symbol" context="Parameters"/><DetectChar char="<" attribute="Symbol" context="TypeParameters"/><DetectIdentifier attribute="Data Type"/><IncludeRules context="Comment"/></context><context name="Variable" attribute="String" fallthroughContext="#pop" lineEndContext="#pop"><DetectIdentifier attribute="String Interpolation" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="ControlFlowKeyword" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Variable" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Imports" defStyleNum="dsImport" spellChecking="0"/><itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Data Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Hex" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Binary" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="String Interpolation" defStyleNum="dsSpecialString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language> |