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
4.3 KiB
XML
1 line
No EOL
4.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Protobuf" version="10" kateversion="5.62" section="Sources" extensions="*.proto" mimetype="text/x-protobuf" author="Slawomir Mikula ([email protected])" license="LGPL"><highlighting><list name="keywords"><item>default</item><item>enum</item><item>extend</item><item>extensions</item><item>import</item><item>message</item><item>oneof</item><item>option</item><item>optional</item><item>package</item><item>packed</item><item>repeated</item><item>required</item><item>reserved</item><item>returns</item><item>rpc</item><item>service</item></list><list name="datatypes"><item>bool</item><item>bytes</item><item>double</item><item>fixed32</item><item>fixed64</item><item>float</item><item>int32</item><item>int64</item><item>sfixed32</item><item>sfixed64</item><item>sint32</item><item>sint64</item><item>string</item><item>uint32</item><item>uint64</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces/><AnyChar String="=:" attribute="Operator"/><AnyChar String=",;" attribute="Separator Symbol"/><AnyChar String="[]<>" attribute="Block Symbol"/><DetectChar char="{" attribute="Block Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Block Symbol" endRegion="Brace1"/><DetectChar char='"' attribute="String" context="StringDQ"/><DetectChar char="'" attribute="String" context="StringSQ"/><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/><AnyChar String="!%&()+-/.*?|~^" attribute="Symbol"/><Float attribute="Float"/><HlCHex attribute="Hex"/><HlCOct attribute="Octal"/><Int attribute="Decimal"/><keyword String="keywords" attribute="Keyword"/><keyword String="datatypes" attribute="Data Type"/><WordDetect String="true" attribute="Keyword"/><WordDetect String="false" attribute="Keyword"/><WordDetect String="inf" attribute="Float"/><WordDetect String="nan" attribute="Float"/><DetectIdentifier/></context><context name="EscapeString" attribute="String Char" lineEndContext="#pop"><RegExpr String="\\([abfnrtv\\'"]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3}|u[0-9a-fA-F]{4}|U000[0-9a-fA-F]{5}|U0010[0-9a-fA-F]{4})" attribute="String Char" context="#pop"/><RegExpr String="\\([xX][0-9a-fA-F]?|u[0-9a-fA-F]{,3}|U(0(0(0[0-9a-fA-F]{,5}|1(0[0-9a-fA-F]{,4})?)?)?)?)?" attribute="Error" context="#pop"/></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="StringDQ" attribute="String" lineEndContext="#pop"><DetectChar char='"' attribute="String" context="#pop"/><DetectChar char="\" context="EscapeString" lookAhead="1"/></context><context name="StringSQ" attribute="String" lineEndContext="#pop"><DetectChar char="'" attribute="String" context="#pop"/><DetectChar char="\" context="EscapeString" lookAhead="1"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Data Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Decimal" defStyleNum="dsDecVal" 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="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Separator Symbol" defStyleNum="dsNormal" spellChecking="0" bold="1"/><itemData name="Block Symbol" defStyleNum="dsNormal" spellChecking="0" bold="1"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language> |