Damson/assets/syntax/smali.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
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Smali" version="4" kateversion="5.62" section="Sources" extensions="*.smali" mimetype="text/x-smali" license="MIT"><highlighting><list name="mnemonics"><item>add-double</item><item>add-double/2addr</item><item>add-float</item><item>add-float/2addr</item><item>add-int</item><item>add-int/2addr</item><item>add-int/lit16</item><item>add-int/lit8</item><item>add-long</item><item>add-long/2addr</item><item>aget</item><item>aget-boolean</item><item>aget-byte</item><item>aget-char</item><item>aget-object</item><item>aget-short</item><item>aget-wide</item><item>and-int</item><item>and-int/2addr</item><item>and-int/lit16</item><item>and-int/lit8</item><item>and-long</item><item>and-long/2addr</item><item>aput</item><item>aput-boolean</item><item>aput-byte</item><item>aput-char</item><item>aput-object</item><item>aput-short</item><item>aput-wide</item><item>array-length</item><item>check-cast</item><item>cmp-long</item><item>cmpg-double</item><item>cmpg-float</item><item>cmpl-double</item><item>cmpl-float</item><item>const</item><item>const-class</item><item>const-method-handle</item><item>const-method-type</item><item>const-string</item><item>const-string/jumbo</item><item>const-wide</item><item>const-wide/16</item><item>const-wide/32</item><item>const-wide/high16</item><item>const/16</item><item>const/4</item><item>const/high16</item><item>div-double</item><item>div-double/2addr</item><item>div-float</item><item>div-float/2addr</item><item>div-int</item><item>div-int/2addr</item><item>div-int/lit16</item><item>div-int/lit8</item><item>div-long</item><item>div-long/2addr</item><item>double-to-float</item><item>double-to-int</item><item>double-to-long</item><item>execute-inline</item><item>execute-inline/range</item><item>fill-array-data</item><item>filled-new-array</item><item>filled-new-array/range</item><item>float-to-double</item><item>float-to-int</item><item>float-to-long</item><item>goto</item><item>goto/16</item><item>goto/32</item><item>if-eq</item><item>if-eqz</item><item>if-ge</item><item>if-gez</item><item>if-gt</item><item>if-gtz</item><item>if-le</item><item>if-lez</item><item>if-lt</item><item>if-ltz</item><item>if-ne</item><item>if-nez</item><item>iget</item><item>iget-boolean</item><item>iget-byte</item><item>iget-char</item><item>iget-object</item><item>iget-object-volatile</item><item>iget-quick</item><item>iget-short</item><item>iget-volatile</item><item>iget-wide</item><item>iget-wide-volatile</item><item>instance-of</item><item>int-to-byte</item><item>int-to-char</item><item>int-to-double</item><item>int-to-float</item><item>int-to-long</item><item>int-to-short</item><item>invoke-custom</item><item>invoke-custom/range</item><item>invoke-direct</item><item>invoke-direct/range</item><item>invoke-interface</item><item>invoke-interface/range</item><item>invoke-object-init/range</item><item>invoke-polymorphic</item><item>invoke-polymorphic/range</item><item>invoke-static</item><item>invoke-static/range</item><item>invoke-super</item><item>invoke-super/range</item><item>invoke-virtual</item><item>invoke-virtual/range</item><item>iput</item><item>iput-boolean</item><item>iput-byte</item><item>iput-char</item><item>iput-object</item><item>iput-short</item><item>iput-volatile</item><item>iput-wide</item><item>iput-wide-volatile</item><item>long-to-double</item><item>long-to-float</item><item>long-to-int</item><item>monitor-enter</item><item>monitor-exit</item><item>move</item><item>move-exception</item><item>move-object</item><item>move-object/16</item><item>move-object/from16</item><item>move-result</item><item>move-result-object</item><item>move-result-wide</item><item>move-wide</item><item>move-wide/16</item><item>move-wide/from16</item><item>move/16</item><item>move/from16</item><item>mul-double</item><item>mul-double/2addr</item><item>mul-float</item><item>mul-float/2addr</item><item>mul-int</item><item>mul-int/2addr</item><item>mul-int/lit16</item><item>mul-int/lit8</item><item>mul-long</item><item>mul-long/2addr</item><item>neg-double</item><item>neg-float</item><item>neg-int</item><item>neg-long</item><item>new-array</item><item>new-instance</item><item>nop</item><item>not-int</item><item>not-long</item><item>or-int</item><item>or-int/2addr</item><item>or-int/lit16</item><item>or-int/lit8</item><item>or-long</item><item>or-long/2addr</item><item>packed-switch</item><item>rem-double</item><item>rem-double/2addr</item><item>rem-float</item><item>rem-float/2addr</item><item>rem-int</item><item>rem-int/2addr</item><item>rem-int/lit16</item><item>rem-int/lit8</item><item>rem-long</item><item>rem-long/2addr</item><item>return</item><item>return-object</item><item>return-void</item><item>return-void-barrier</item><item>return-wide</item><item>rsub-int</item><item>rsub-int/lit8</item><item>sget</item><item>sget-boolean</item><item>sget-byte</item><item>sget-char</item><item>sget-object</item><item>sget-object-volatile</item><item>sget-short</item><item>sget-volatile</item><item>sget-wide</item><item>sget-wide-volatile</item><item>shl-int</item><item>shl-int/2addr</item><item>shl-int/lit8</item><item>shl-long</item><item>shl-long/2addr</item><item>shr-int</item><item>shr-int/2addr</item><item>shr-int/lit8</item><item>shr-long</item><item>shr-long/2addr</item><item>sparse-switch</item><item>sput</item><item>sput-boolean</item><item>sput-byte</item><item>sput-char</item><item>sput-object</item><item>sput-short</item><item>sput-volatile</item><item>sput-wide</item><item>sput-wide-volatile</item><item>sub-double</item><item>sub-double/2addr</item><item>sub-float</item><item>sub-float/2addr</item><item>sub-int</item><item>sub-int/2addr</item><item>sub-long</item><item>sub-long/2addr</item><item>throw</item><item>throw-verification-error</item><item>ushr-int</item><item>ushr-int/2addr</item><item>ushr-int/lit8</item><item>ushr-long</item><item>ushr-long/2addr</item><item>xor-int</item><item>xor-int/2addr</item><item>xor-int/lit16</item><item>xor-int/lit8</item><item>xor-long</item><item>xor-long/2addr</item></list><list name="keywords"><item>abstract</item><item>annotation</item><item>bridge</item><item>build</item><item>constructor</item><item>declared-synchronized</item><item>enum</item><item>final</item><item>interface</item><item>native</item><item>private</item><item>protected</item><item>public</item><item>runtime</item><item>static</item><item>strictfp</item><item>synchronized</item><item>synthetic</item><item>system</item><item>transient</item><item>varargs</item><item>volatile</item></list><contexts><context name="Normal" attribute="Normal Text"><WordDetect String=".class" attribute="Attribute"/><WordDetect String=".super" attribute="Attribute"/><WordDetect String=".implements" attribute="Attribute"/><WordDetect String=".source" attribute="Attribute"/><WordDetect String=".field" attribute="Attribute"/><RegExpr String="\.end\s+field" attribute="Attribute" firstNonSpace="1"/><WordDetect String=".annotation" attribute="Attribute" context="Annotation" beginRegion="Annotation"/><WordDetect String=".subannotation" attribute="Attribute"/><RegExpr String="\.end\s+subannotation" attribute="Attribute" firstNonSpace="1"/><WordDetect String=".enum" attribute="Attribute"/><WordDetect String=".method" attribute="Attribute" context="MethodDeclaration" beginRegion="Method"/><keyword String="keywords" attribute="Keyword"/><IncludeRules context="Global"/></context><context name="Literal" attribute="Normal Text"><WordDetect String="true" attribute="Bool"/><WordDetect String="false" attribute="Bool"/><WordDetect String="-infinity" attribute="Float" insensitive="1"/><WordDetect String="infinity" attribute="Float" insensitive="1"/><WordDetect String="-infinityD" attribute="Float" insensitive="1"/><WordDetect String="infinityD" attribute="Float" insensitive="1"/><WordDetect String="-infinityF" attribute="Float" insensitive="1"/><WordDetect String="infinityF" attribute="Float" insensitive="1"/><WordDetect String="NaN" attribute="Float" insensitive="1"/><WordDetect String="NaND" attribute="Float" insensitive="1"/><WordDetect String="NaNF" attribute="Float" insensitive="1"/><RegExpr String="\-?\d*(\d+\.|\.\d+|\d+)\d*[eE][\-\+]?\d+[dDfF]?\b|\-?\d*(\d+\.|\.\d+)\d*[dDfF]?|\-?\d+[dDfF]\b|\-?0x[\da-fA-F]*(\.|[\da-fA-F]+)[\da-fA-F]*[pP]\-?\d+[dDfF]?\b" attribute="Float"/><RegExpr String="\-?0x[\da-fA-F]+[LtTsS]?\b" attribute="Hex"/><RegExpr String="\-?\d+[tTLsS]?\b" attribute="Decimal"/><HlCChar attribute="Char"/><RegExpr String="'\\u[\da-fA-F]{4}'" attribute="Char"/><DetectChar char='"' attribute="String" context="String"/></context><context name="Global" attribute="Normal Text"><DetectChar char="#" attribute="Comment" context="Comment"/><RegExpr String="\b[\w\$]+\s*(?=\s*>?\s*\()" attribute="Method"/><RegExpr String="\b[\w\$]+\s*(?=\:)" attribute="Field"/><IncludeRules context="Literal"/><RegExpr String="((?&lt;=\w\:L)|(?&lt;=[\s,;\(\)]L)|(?&lt;=\[L)|(?&lt;=[ZBSCIJFD]L))(javax?|dalvik|android)/[\w\$/]+" attribute="Built-in"/><RegExpr String="((?&lt;=\w\:L)|(?&lt;=[\s,;\(\)]L)|(?&lt;=\[L)|(?&lt;=[ZBSCIJFD]L))[\w/\$]+" attribute="Data Type"/><RegExpr String="((?&lt;=\w\:)|(?&lt;=[\s,;\(\)])(\[*[ZBSCIJFD])*)\[*([ZBSCIJFD]|L)|(?&lt;=[;ZBSCIJFD\(]\))V" attribute="Type Identifier"/><StringDetect String=".." attribute="Operator"/><AnyChar String="{}&lt;>:;=()" attribute="Symbol"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Annotation" attribute="Annotation" lineEndContext="AnnotationBody"><IncludeRules context="Global"/><keyword String="keywords" attribute="Keyword"/></context><context name="AnnotationBody" attribute="Attribute"><IncludeRules context="Global"/><RegExpr String="\.end\s+annotation" attribute="Attribute" context="#pop#pop" endRegion="Annotation" firstNonSpace="1"/></context><context name="ArrayData" attribute="Normal Text" lineEndContext="ArrayDataBody"><IncludeRules context="Literal"/></context><context name="ArrayDataBody" attribute="Normal Text"><DetectChar char="#" attribute="Comment" context="Comment"/><IncludeRules context="Literal"/><RegExpr String="\.end\s+array\-data" attribute="Attribute" context="#pop#pop" endRegion="ArrayData" firstNonSpace="1"/></context><context name="Method" attribute="Normal Text"><WordDetect String=".registers" attribute="Attribute"/><WordDetect String=".locals" attribute="Attribute"/><WordDetect String=".annotation" attribute="Attribute" context="Annotation" beginRegion="Annotation"/><WordDetect String=".array-data" attribute="Attribute" context="ArrayData" beginRegion="ArrayData"/><WordDetect String=".packed-switch" attribute="Attribute" context="PackedSwitch" beginRegion="PackedSwitch"/><WordDetect String=".sparse-switch" attribute="Attribute" context="SparseSwitch" beginRegion="SparseSwitch"/><WordDetect String=".catch" attribute="Attribute"/><WordDetect String=".catchall" attribute="Attribute"/><WordDetect String=".line" attribute="Attribute"/><WordDetect String=".param" attribute="Attribute" context="Param"/><WordDetect String=".local" attribute="Attribute"/><RegExpr String="\.end\s+param|\.(end|restart)\s+local" attribute="Attribute" firstNonSpace="1"/><RegExpr String="\.end\s+method" attribute="Attribute" context="#pop#pop" endRegion="Method" firstNonSpace="1"/><WordDetect String=".prologue" attribute="Attribute"/><WordDetect String=".epilogue" attribute="Attribute"/><keyword String="mnemonics" attribute="Mnemonic"/><RegExpr String="\b(v|p)[0-9]+\b" attribute="Register"/><RegExpr String="(?&lt;=^|\s|{)\:\w+" attribute="Label"/><StringDetect String="->" attribute="Operator"/><IncludeRules context="Global"/></context><context name="MethodDeclaration" attribute="Normal Text" lineEndContext="Method"><keyword String="keywords" attribute="Keyword"/><IncludeRules context="Global"/></context><context name="PackedSwitch" attribute="Attribute" lineEndContext="PackedSwitchBody"><IncludeRules context="Literal"/></context><context name="PackedSwitchBody" attribute="Normal Text"><DetectChar char="#" attribute="Comment" context="Comment"/><RegExpr String="(?&lt;=^|\s|{)\:\w+" attribute="Label"/><RegExpr String="\.end\s+packed\-switch" attribute="Attribute" context="#pop#pop" endRegion="PackedSwitch" firstNonSpace="1"/></context><context name="Param" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="\bp[0-9]+\b" attribute="Register"/><RegExpr String="(?&lt;=,)\s*[\w]+" attribute="Variable"/><IncludeRules context="Literal"/></context><context name="SparseSwitch" attribute="Attribute" lineEndContext="SparseSwitchBody"><IncludeRules context="Literal"/></context><context name="SparseSwitchBody" attribute="Normal Text"><DetectChar char="#" attribute="Comment" context="Comment"/><IncludeRules context="Literal"/><RegExpr String="(?&lt;=^|\s|{)\:\w+" attribute="Label"/><StringDetect String="->" attribute="Operator"/><RegExpr String="\.end\s+sparse\-switch" attribute="Attribute" context="#pop#pop" endRegion="SparseSwitch" firstNonSpace="1"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String"/><HlCStringChar attribute="String Char"/><RegExpr String="\\u[0-9a-fA-F]{4}" attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Attribute" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Annotation" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Mnemonic" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Method" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Register" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Field" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Variable" defStyleNum="dsVariable"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Type Identifier" defStyleNum="dsDataType" italic="1" spellChecking="0"/><itemData name="Data Type" defStyleNum="dsDataType" italic="0" spellChecking="0"/><itemData name="Label" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Bool" 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="dsNormal" spellChecking="0"/><itemData name="Built-in" defStyleNum="dsBuiltIn" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#" position="afterwhitespace"/></comments><keywords casesensitive="1" weakDeliminator="-/[$"/></general></language>