Damson/assets/syntax/asm-avr.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
11 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="AVR Assembler" version="6" kateversion="5.62" section="Assembler" extensions="*.asm;*.ASM;*.asm-avr" mimetype="text/x-asm;text/x-asm-avr" author="Roland Nagy" license="GPLv2+"><highlighting><list name="keywords"><item>adc</item><item>add</item><item>adiw</item><item>and</item><item>andi</item><item>asr</item><item>bclr</item><item>bld</item><item>break</item><item>bset</item><item>bst</item><item>cbi</item><item>cbr</item><item>clc</item><item>clh</item><item>cli</item><item>cln</item><item>clr</item><item>cls</item><item>clt</item><item>clv</item><item>clz</item><item>com</item><item>dec</item><item>des</item><item>elpm</item><item>eor</item><item>fmul</item><item>fmuls</item><item>fmulsu</item><item>in</item><item>inc</item><item>lac</item><item>las</item><item>lat</item><item>ld</item><item>ldd</item><item>ldi</item><item>lds</item><item>lpm</item><item>lsl</item><item>lsr</item><item>mov</item><item>movw</item><item>mul</item><item>muls</item><item>mulsu</item><item>neg</item><item>nop</item><item>or</item><item>ori</item><item>out</item><item>pop</item><item>push</item><item>rol</item><item>ror</item><item>sbc</item><item>sbci</item><item>sbi</item><item>sbiw</item><item>sbr</item><item>sec</item><item>seh</item><item>sei</item><item>sen</item><item>ser</item><item>ses</item><item>set</item><item>sev</item><item>sez</item><item>sleep</item><item>spm</item><item>st</item><item>std</item><item>sts</item><item>sub</item><item>subi</item><item>swap</item><item>tst</item><item>wdr</item><item>xch</item></list><list name="branch instructions"><item>brbc</item><item>brbs</item><item>brcc</item><item>brcs</item><item>breq</item><item>brge</item><item>brhc</item><item>brhs</item><item>brid</item><item>brie</item><item>brlo</item><item>brlt</item><item>brmi</item><item>brne</item><item>brpl</item><item>brsh</item><item>brtc</item><item>brts</item><item>brvc</item><item>brvs</item><item>call</item><item>cp</item><item>cpc</item><item>cpi</item><item>cpse</item><item>eicall</item><item>eijmp</item><item>icall</item><item>ijmp</item><item>jmp</item><item>rcall</item><item>ret</item><item>reti</item><item>rjmp</item><item>sbic</item><item>sbis</item><item>sbrc</item><item>sbrs</item></list><list name="directives"><item>.byte</item><item>.cseg</item><item>.csegsize</item><item>.db</item><item>.dd</item><item>.def</item><item>.dq</item><item>.dseg</item><item>.dw</item><item>.elif</item><item>.else</item><item>.endif</item><item>.endm</item><item>.endmacro</item><item>.equ</item><item>.error</item><item>.esec</item><item>.exit</item><item>.if</item><item>.ifdef</item><item>.ifndef</item><item>.include</item><item>.list</item><item>.listmac</item><item>.macro</item><item>.message</item><item>.nolist</item><item>.nooverlap</item><item>.org</item><item>.overlap</item><item>.set</item><item>.undef</item><item>.warning</item></list><list name="functions"><item>abs</item><item>byte2</item><item>byte3</item><item>byte4</item><item>defined</item><item>exp2</item><item>frac</item><item>high</item><item>hwrd</item><item>int</item><item>log2</item><item>low</item><item>lwrd</item><item>page</item><item>q15</item><item>q7</item><item>strlen</item></list><list name="constants"><item>__AVRASM_VERSION__</item><item>__CENTURY__</item><item>__CORE_VERSION__</item><item>__DATE__</item><item>__DAY__</item><item>__FILE__</item><item>__HOUR__</item><item>__LINE__</item><item>__MINUTE__</item><item>__MONTH__</item><item>__PART_NAME__</item><item>__SECOND__</item><item>__TIME__</item><item>__YEAR__</item></list><list name="macros"><item>#define</item><item>#elif</item><item>#else</item><item>#endif</item><item>#error</item><item>#idef</item><item>#if</item><item>#ifndef</item><item>#include</item><item>#message</item><item>#pragma</item><item>#undef</item><item>#warning</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><DetectChar char="0" attribute="Decimal" context="Number" lookAhead="1"/><Int attribute="Decimal" context="Decimal"/><DetectChar char="." attribute="Directive" context="Directive" lookAhead="1"/><DetectChar char="$" attribute="Hex" context="Hex"/><DetectChar char="@" attribute="Referred Macro Parameter" context="RefMacroParam" lookAhead="1"/><HlCChar attribute="Char"/><DetectChar char='"' attribute="String" context="String"/><StringDetect String="/*" attribute="Comment" context="Commentar 1" beginRegion="BlockComment"/><StringDetect String="//" attribute="Comment" context="Commentar 2"/><DetectChar char=";" attribute="Comment" context="Commentar 2"/><AnyChar String="!~-*/%+-&lt;>=&amp;^|?,()\" attribute="Symbol"/><DetectChar char="#" attribute="Preprocessor" context="Preprocessor" firstNonSpace="1" lookAhead="1"/><RegExpr String="[A-Za-z0-9_]+:" attribute="Label" firstNonSpace="1"/><keyword String="keywords" attribute="Keyword"/><keyword String="branch instructions" attribute="Branch Instructions"/><keyword String="functions" attribute="Function"/><RegExpr String="[A-Za-z_.$][A-Za-z0-9_.$]*"/></context><context name="Float" attribute="Float" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[-+]?[0-9]*+\.?[0-9]*+[eE]?[-+]?[0-9]+" attribute="Float"/></context><context name="Commentar 2" attribute="Comment" lineEndContext="#pop"><DetectSpaces attribute="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier attribute="Comment"/></context><context name="Hex" attribute="Hex" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="0123456789abcdefABCDEF_" attribute="Hex"/></context><context name="InPreprocessor" attribute="Preprocessor" lineEndContext="#pop"><LineContinue attribute="Symbol"/><DetectChar char="#" attribute="Symbol"/><StringDetect String="__" attribute="Constant" context="Constant" lookAhead="1"/><IncludeRules context="Normal"/></context><context name="BadDirective" attribute="Error" fallthroughContext="#pop" lineEndContext="#pop"><DetectChar char="." attribute="Error"/><DetectIdentifier attribute="Error" context="#pop"/></context><context name="Binary" attribute="Binary" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="01_" attribute="Binary"/></context><context name="Commentar 1" attribute="Comment"><DetectSpaces attribute="Comment"/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="BlockComment"/><IncludeRules context="##Comments"/><DetectIdentifier attribute="Comment"/></context><context name="Constant" attribute="Constant"><keyword String="constants" attribute="Constant" context="#pop"/><RegExpr String="__(?:[0-9a-zA-Z]++|_(?!_))++__" attribute="Constant" context="#pop"/><DetectIdentifier attribute="Error" context="#pop"/></context><context name="Decimal" attribute="Decimal" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="0123456789_" attribute="Decimal"/></context><context name="Directive" attribute="Directive" fallthroughContext="#pop!BadDirective" lineEndContext="#pop"><keyword String="directives" attribute="Directive" context="#pop" insensitive="1"/></context><context name="Number" attribute="Decimal" lineEndContext="#pop"><StringDetect String="0x" attribute="Hex" context="#pop!Hex" insensitive="1"/><StringDetect String="0b" attribute="Binary" context="#pop!Binary" insensitive="1"/><StringDetect String="0f" attribute="Float" context="#pop!Float" insensitive="1"/><StringDetect String="0e" attribute="Float" context="#pop!Float" insensitive="1"/><StringDetect String="0d" attribute="Float" context="#pop!Float" insensitive="1"/><WordDetect String="0" attribute="Decimal" context="#pop"/><DetectChar char="0" attribute="Octal" context="#pop!Octal"/></context><context name="Octal" attribute="Octal" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="01234567_" attribute="Octal"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><keyword String="macros" attribute="Preprocessor" context="#pop!InPreprocessor"/><DetectChar char="#" attribute="Preprocessor" context="#pop!PreprocessorName"/></context><context name="PreprocessorName" attribute="Preprocessor" lineEndContext="#pop"><DetectIdentifier attribute="Unknown Preprocessor" context="#pop!InPreprocessor"/></context><context name="RefMacroParam" attribute="Referred Macro Parameter" lineEndContext="#pop"><StringDetect String="@0" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@1" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@2" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@3" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@4" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@5" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@6" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@7" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@8" attribute="Referred Macro Parameter" context="#pop"/><StringDetect String="@9" attribute="Referred Macro Parameter" context="#pop"/><DetectChar char="@" attribute="Error" context="#pop"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="Symbol"/><HlCStringChar attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Label" defStyleNum="dsFunction"/><itemData name="Function" defStyleNum="dsFunction"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Branch Instructions" defStyleNum="dsControlFlow"/><itemData name="Directive" defStyleNum="dsKeyword"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Binary" 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="Symbol" defStyleNum="dsOperator"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Preprocessor" defStyleNum="dsPreprocessor"/><itemData name="Constant" defStyleNum="dsOthers"/><itemData name="Error" defStyleNum="dsError"/><itemData name="Unknown Preprocessor" defStyleNum="dsError"/><itemData name="Referred Macro Parameter" defStyleNum="dsVariable"/></itemDatas></highlighting><general><comments><comment name="singleLine" start=";"/><comment name="multiLine" start="/*" end="*/" region="BlockComment"/></comments><keywords casesensitive="1" weakDeliminator=".$#"/></general></language>