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
9.3 KiB
XML
1 line
No EOL
9.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Cap'n Proto" section="Sources" version="1" kateversion="5.79" indenter="cstyle" extensions="*.capnp" author="Jonathan Poelen ([email protected])" license="MIT"><highlighting><list name="keyword"><item>annotation</item><item>const</item><item>enum</item><item>extends</item><item>import</item><item>interface</item><item>struct</item><item>union</item><item>using</item></list><list name="type"><item>AnyPointer</item><item>Bool</item><item>Data</item><item>Float32</item><item>Float64</item><item>Int16</item><item>Int32</item><item>Int64</item><item>Int8</item><item>List</item><item>Text</item><item>UInt16</item><item>UInt32</item><item>UInt64</item><item>UInt8</item><item>Void</item><item>group</item><item>union</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces/><AnyChar String=",;" attribute="Separator Symbol"/><AnyChar String="[]()->" attribute="Symbol"/><HlCHex attribute="Id" context="CheckInvalidSuffix" additionalDeliminator="@"/><Int attribute="Id" context="CheckInvalidSuffix" additionalDeliminator="@"/><DetectChar char="@" attribute="Id"/><DetectChar char=":" attribute="Type Symbol" context="Type"/><DetectChar char="=" attribute="Field Assignement" context="Value"/><DetectChar char="#" attribute="Comment" context="Comment"/><DetectChar char="$" attribute="Annotation Symbol" context="Annotation"/><DetectChar char="{" attribute="Block Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Block Symbol" endRegion="Brace1"/><keyword String="keyword" attribute="Keyword"/><DetectIdentifier/></context><context name="CheckInvalidSuffix" attribute="Error" fallthroughContext="#pop#pop"><DetectIdentifier attribute="Error"/><AnyChar String="0123456789" attribute="Error"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="InvalidEscapeString" attribute="Type" lineEndContext="#pop"><RegExpr String="\\(x[[:xdigit:]]?|[0-7]+)?" attribute="Error" context="#pop"/></context><context name="EscapeAnnotationQ" attribute="Annotation" lineEndContext="#pop"><RegExpr String="\\(x[[:xdigit:]]{2}|[0-7]{1,3}|[abfnrtv\\'"])" attribute="String Annotation Char" context="#pop"/><IncludeRules context="InvalidEscapeString"/></context><context name="EscapeString" attribute="String" lineEndContext="#pop"><RegExpr String="\\(x[[:xdigit:]]{2}|[0-7]{1,3}|[abfnrtv\\'"])" attribute="String Char" context="#pop"/><IncludeRules context="InvalidEscapeString"/></context><context name="EscapeTypeQ" attribute="Type" lineEndContext="#pop"><RegExpr String="\\(x[[:xdigit:]]{2}|[0-7]{1,3}|[abfnrtv\\'"])" attribute="String Type Char" context="#pop"/><IncludeRules context="InvalidEscapeString"/></context><context name="FindCommonAnnotation" attribute="Annotation"><DetectChar char="#" attribute="Comment" context="Comment"/><DetectChar char="(" attribute="Annotation" context="ParenAnnotation"/><DetectChar char='"' attribute="String Annotation" context="AnnotationDQ"/><DetectChar char="'" attribute="String Annotation" context="AnnotationSQ"/><DetectIdentifier attribute="Annotation"/><DetectSpaces attribute="Annotation"/></context><context name="FindCommonType" attribute="Type"><DetectChar char="(" attribute="Type" context="ParenType"/><DetectChar char='"' attribute="String Type" context="TypeDQ"/><DetectChar char="'" attribute="String Type" context="TypeSQ"/><DetectChar char="#" attribute="Comment" context="Comment"/><keyword String="type" attribute="Built-in Type"/><DetectIdentifier attribute="Type"/></context><context name="FindCommonValue" attribute="Value"><DetectSpaces attribute="Value"/><AnyChar String="0123456789" context="Number" lookAhead="1"/><AnyChar String="([" attribute="Symbol" context="ParenValue"/><DetectChar char="-" attribute="Operator"/><DetectChar char="=" attribute="Value Assignement"/><DetectChar char='"' attribute="String" context="StringDQ"/><DetectChar char="'" attribute="String" context="StringSQ"/><DetectChar char="#" attribute="Comment" context="Comment"/><DetectChar char="," attribute="Separator Symbol"/><WordDetect String="nan" attribute="Number"/><WordDetect String="inf" attribute="Number"/><WordDetect String="true" attribute="Constant"/><WordDetect String="false" attribute="Constant"/><DetectIdentifier attribute="Value"/></context><context name="Annotation" attribute="Annotation"><AnyChar String="{};:=$)," context="#pop" lookAhead="1"/><IncludeRules context="FindCommonAnnotation"/></context><context name="AnnotationDQ" attribute="Annotation" lineEndContext="#pop"><DetectChar char='"' attribute="String Annotation" context="#pop"/><DetectChar char="\" context="EscapeAnnotationQ" lookAhead="1"/></context><context name="AnnotationSQ" attribute="Annotation" lineEndContext="#pop"><DetectChar char="'" attribute="String Annotation" context="#pop"/><DetectChar char="\" context="EscapeAnnotationQ" lookAhead="1"/></context><context name="Hex" attribute="Number" fallthroughContext="#pop!CheckInvalidSuffix"><AnyChar String="0123456789abcdefABCDEF" attribute="Number"/></context><context name="Number" attribute="Number"><StringDetect String="0x" attribute="Number Prefix" context="Hex"/><WordDetect String="0" attribute="Number" context="#pop" additionalDeliminator="@$'""/><RegExpr String="[0-9]+([.][0-9]*([eE][-+]?[0-9]+)?|[eE][-+]?[0-9]+)|[1-9][0-9]*" attribute="Number" context="CheckInvalidSuffix"/><DetectChar char="0" attribute="Number Prefix" context="Oct"/></context><context name="Oct" attribute="Number" fallthroughContext="#pop!CheckInvalidSuffix"><AnyChar String="01234567" attribute="Number"/></context><context name="ParenAnnotation" attribute="Annotation"><AnyChar String="{};" context="#pop#pop" lookAhead="1"/><DetectChar char=")" attribute="Annotation" context="#pop"/><IncludeRules context="FindCommonAnnotation"/></context><context name="ParenType" attribute="Type"><DetectChar char=")" attribute="Type" context="#pop"/><AnyChar String="{};" context="#pop#pop" lookAhead="1"/><IncludeRules context="FindCommonType"/><DetectSpaces attribute="Type"/></context><context name="ParenValue" attribute="Value"><AnyChar String="])" attribute="Symbol" context="#pop"/><AnyChar String="{};" context="#pop#pop" lookAhead="1"/><IncludeRules context="FindCommonValue"/></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><context name="Type" attribute="Type"><AnyChar String="{};:=$)," context="#pop" lookAhead="1"/><IncludeRules context="FindCommonType"/></context><context name="TypeDQ" attribute="Type" lineEndContext="#pop"><DetectChar char='"' attribute="String Type" context="#pop"/><DetectChar char="\" context="EscapeTypeQ" lookAhead="1"/></context><context name="TypeSQ" attribute="Type" lineEndContext="#pop"><DetectChar char="'" attribute="String Type" context="#pop"/><DetectChar char="\" context="EscapeTypeQ" lookAhead="1"/></context><context name="Value" attribute="Value"><AnyChar String="{};:$)," context="#pop" lookAhead="1"/><IncludeRules context="FindCommonValue"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Id" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Field Assignement" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Value" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Value Assignement" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Operator" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Number Prefix" defStyleNum="dsDecVal" spellChecking="0" italic="1"/><itemData name="Number" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Constant" defStyleNum="dsConstant" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Built-in Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Type Symbol" defStyleNum="dsDataType" spellChecking="0"/><itemData name="String Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="String Type Char" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Annotation" defStyleNum="dsInformation" spellChecking="0"/><itemData name="Annotation Symbol" defStyleNum="dsInformation" spellChecking="0"/><itemData name="String Annotation" defStyleNum="dsInformation" spellChecking="0"/><itemData name="String Annotation Char" defStyleNum="dsInformation" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Block Symbol" defStyleNum="dsNormal" spellChecking="0" bold="1"/><itemData name="Separator Symbol" defStyleNum="dsNormal" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments><keywords casesensitive="1"/></general></language> |