Damson/assets/syntax/objectivec.xml
astar76 11c1a7808b Build the syntax definitions into the app
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]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
5.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Objective-C" alternativeNames="ObjectiveC;ObjC" version="8" kateversion="5.62" section="Sources" extensions="*.m;*.h" mimetype="text/x-objc-src;text/x-c-hdr"><highlighting><list name="keywords"><item>@class</item><item>@defs</item><item>@encode</item><item>@end</item><item>@implementation</item><item>@interface</item><item>@private</item><item>@protected</item><item>@protocol</item><item>@public</item><item>@selector</item><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>self</item><item>sizeof</item><item>struct</item><item>super</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="Default" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><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"/><IncludeRules context="FindComments"/><AnyChar String=":!%&amp;()+,-/.*&lt;=>?[]|~^;" attribute="Symbol"/><DetectChar char="#" attribute="Preprocessor" context="Preprocessor" column="0"/><StringDetect String='@"' attribute="String" context="String"/></context><context name="FindComments" attribute="Normal Text" lineEndContext="#pop"><StringDetect String="//" attribute="Comment" context="MatchComment" lookAhead="1"/><StringDetect String="/*" attribute="Comment" context="MatchComment" lookAhead="1"/></context><context name="MatchComment" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><IncludeRules context="##Doxygen"/><StringDetect String="//" attribute="Comment" context="#pop!SingleLineComment"/><StringDetect String="/*" attribute="Comment" context="#pop!MultiLineComment" beginRegion="Comment"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String"/><HlCStringChar attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/></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="MultiLineComment" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="Default"><LineContinue attribute="Preprocessor"/><RangeDetect char1='"' char='"' attribute="Prep. Lib"/><RangeDetect char1=">" char="&lt;" attribute="Prep. Lib"/><IncludeRules context="FindComments"/></context><context name="SingleLineComment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></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="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="Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Preprocessor" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Prep. Lib" defStyleNum="dsImport" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language>