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.9 KiB
XML
1 line
No EOL
4.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="ANSI C89" section="Sources" version="8" kateversion="5.62" indenter="cstyle" extensions="*.c;*.C;*.h" mimetype="text/x-csrc;text/x-c++src;text/x-chdr" priority="2" author="Dominik Haumann ([email protected])" license="MIT"><highlighting><list name="keywords"><item>break</item><item>case</item><item>continue</item><item>default</item><item>do</item><item>else</item><item>enum</item><item>extern</item><item>for</item><item>goto</item><item>if</item><item>return</item><item>sizeof</item><item>struct</item><item>switch</item><item>typedef</item><item>union</item><item>while</item></list><list name="types"><item>auto</item><item>char</item><item>const</item><item>double</item><item>float</item><item>int</item><item>long</item><item>register</item><item>short</item><item>signed</item><item>static</item><item>unsigned</item><item>void</item><item>volatile</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces/><RegExpr String="#\s*if\s+0" attribute="Preprocessor" context="Outscoped" beginRegion="Outscoped" firstNonSpace="1"/><DetectChar char="#" attribute="Preprocessor" context="Preprocessor" firstNonSpace="1"/><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><DetectIdentifier/><DetectChar char="{" attribute="Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Symbol" endRegion="Brace1"/><Float attribute="Float" context="Float Suffixes"/><HlCOct attribute="Octal"/><HlCHex attribute="Hex"/><Int attribute="Decimal" context="Int Suffixes"/><HlCChar attribute="Char"/><DetectChar char='"' attribute="String" context="String"/><StringDetect String="/*" attribute="Comment" context="comment" beginRegion="blockcomment"/><AnyChar String=":!%&()+,-/.*<=>?[]|~^;" attribute="Symbol"/></context><context name="comment" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="blockcomment"/><IncludeRules context="##Comments"/></context><context name="Outscoped intern" attribute="Comment"><StringDetect String="/*" attribute="Comment" context="comment" beginRegion="Comment"/><RegExpr String="#\s*if" attribute="Comment" context="Outscoped intern" beginRegion="Outscoped" firstNonSpace="1"/><RegExpr String="#\s*endif" attribute="Comment" context="#pop" endRegion="Outscoped" firstNonSpace="1"/></context><context name="Float Suffixes" attribute="Float" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="fF" attribute="Float" context="#pop"/></context><context name="Int Suffixes" attribute="Decimal" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="ULL" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="LLU" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="UL" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="LU" attribute="Decimal" context="#pop" insensitive="1"/><StringDetect String="LL" attribute="Decimal" context="#pop" insensitive="1"/><AnyChar String="ULul" attribute="Decimal" context="#pop"/></context><context name="Outscoped" attribute="Comment"><StringDetect String="/*" attribute="Comment" context="comment" beginRegion="Comment"/><IncludeRules context="##Comments"/><RegExpr String="#\s*if" attribute="Comment" context="Outscoped intern" beginRegion="Outscoped" firstNonSpace="1"/><RegExpr String="#\s*(?:endif|else|elif)" attribute="Preprocessor" context="#pop" endRegion="Outscoped" firstNonSpace="1"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><LineContinue attribute="Preprocessor"/><RegExpr String="define(?:[^\\]++|\\.)++" attribute="Preprocessor"/><RangeDetect char1='"' char='"' attribute="Prep. Lib"/><RangeDetect char1=">" char="<" attribute="Prep. Lib"/><StringDetect String="/*" attribute="Comment" context="comment" beginRegion="blockcomment"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String"/><HlCStringChar attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Data Type" defStyleNum="dsDataType"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsSpecialChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator"/><itemData name="Preprocessor" defStyleNum="dsPreprocessor"/><itemData name="Prep. Lib" defStyleNum="dsImport"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="/*" end="*/" region="blockcomment"/></comments><keywords casesensitive="1"/></general></language> |