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
6.5 KiB
XML
1 line
No EOL
6.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Asm6502" version="7" kateversion="5.62" section="Assembler" extensions="*.asm" mimetype="text/x-asm6502"><highlighting><list name="Directives"><item>.align</item><item>.asc</item><item>.bss</item><item>.byt</item><item>.byte</item><item>.data</item><item>.db</item><item>.dsb</item><item>.dsw</item><item>.dw</item><item>.ende</item><item>.endm</item><item>.ends</item><item>.endst</item><item>.enum</item><item>.fopt</item><item>.incbin</item><item>.include</item><item>.macro</item><item>.memorymap</item><item>.org</item><item>.struct</item><item>.text</item><item>.word</item><item>.zero</item><item>db</item><item>dsb</item><item>dsw</item><item>dw</item><item>instanceof</item></list><list name="Branch Instructions"><item>bcc</item><item>bcs</item><item>beq</item><item>bmi</item><item>bne</item><item>bpl</item><item>bra</item><item>brk</item><item>brl</item><item>bvc</item><item>bvs</item><item>cop</item><item>jml</item><item>jmp</item><item>jsl</item><item>jsr</item><item>rti</item><item>rtl</item><item>rts</item><item>wai</item></list><list name="Instructions"><item>adc</item><item>and</item><item>asl</item><item>bge</item><item>bit</item><item>blt</item><item>clc</item><item>cld</item><item>cli</item><item>clv</item><item>cmp</item><item>cpx</item><item>cpy</item><item>dea</item><item>dec</item><item>dex</item><item>dey</item><item>eor</item><item>ina</item><item>inc</item><item>inx</item><item>iny</item><item>lda</item><item>lda.b</item><item>lda.w</item><item>ldx</item><item>ldx.b</item><item>ldx.w</item><item>ldy</item><item>ldy.b</item><item>ldy.w</item><item>lsr</item><item>mvn</item><item>nop</item><item>ora</item><item>pea</item><item>pei</item><item>pha</item><item>phb</item><item>phd</item><item>phk</item><item>php</item><item>phx</item><item>phy</item><item>pla</item><item>plb</item><item>pld</item><item>plp</item><item>plx</item><item>ply</item><item>rep</item><item>rol</item><item>ror</item><item>sbc</item><item>sec</item><item>sed</item><item>sei</item><item>sep</item><item>sta</item><item>stx</item><item>sty</item><item>stz</item><item>tax</item><item>tay</item><item>tcd</item><item>tsx</item><item>txa</item><item>txs</item><item>txy</item><item>tya</item><item>tyx</item><item>xba</item><item>xce</item></list><contexts><context name="Base" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><DetectChar char=";" attribute="Comment" context="Comment"/><RegExpr String="[a-zA-Z][a-zA-Z0-9._]*+:|[+-]+:" attribute="Label" context="AfterLabel"/><keyword String="Directives" attribute="Directive" context="Instruction" insensitive="1"/><keyword String="Instructions" attribute="Instruction" context="Instruction" insensitive="1"/><keyword String="Branch Instructions" attribute="Branch Instruction" context="Instruction" insensitive="1"/><DetectChar char="." attribute="Directive" context="Directive"/><DetectIdentifier attribute="Unknown Instruction" context="Instruction"/></context><context name="Instruction" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char=";" attribute="Comment" context="#pop!Comment"/><DetectChar char="$" attribute="Hex" context="Number16"/><DetectChar char="%" attribute="Binary" context="Number2"/><DetectChar char="@" attribute="Octal" context="Number8"/><Int attribute="Decimal"/><DetectChar char="," attribute="Symbol Separator" context="Register" lookAhead="1"/><DetectChar char="#" attribute="Keyword"/><DetectIdentifier attribute="Normal Text"/><RangeDetect char1='"' char='"' attribute="String"/><AnyChar String="-+<>=\&|^~" attribute="Operator"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces attribute="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier attribute="Comment"/></context><context name="Directive" attribute="Directive" fallthroughContext="#pop!Instruction" lineEndContext="#pop"><DetectIdentifier attribute="Unknown Directive" context="#pop!Instruction"/></context><context name="AfterLabel" attribute="Normal Text" fallthroughContext="#pop!Instruction" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char=";" attribute="Comment" context="#pop!Comment"/><keyword String="Directives" attribute="Directive" context="#pop!Instruction" insensitive="1"/><keyword String="Instructions" attribute="Instruction" context="#pop!Instruction" insensitive="1"/><keyword String="Branch Instructions" attribute="Branch Instruction" context="#pop!Instruction" insensitive="1"/><DetectChar char="." attribute="Directive" context="Directive"/><DetectIdentifier attribute="Unknown Instruction" context="#pop!Instruction"/></context><context name="Number16" attribute="Hex" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[A-Fa-f0-9]+" attribute="Hex" context="#pop"/></context><context name="Number2" attribute="Binary" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[01]+" attribute="Binary" context="#pop"/></context><context name="Number8" attribute="Octal" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[0-7]+" attribute="Octal" context="#pop"/></context><context name="Register" attribute="Normal Text" lineEndContext="#pop"><StringDetect String=",X" attribute="Keyword" context="#pop"/><StringDetect String=",Y" attribute="Keyword" context="#pop"/><StringDetect String=",x" attribute="Keyword" context="#pop"/><StringDetect String=",y" attribute="Keyword" context="#pop"/><DetectChar char="," attribute="Symbol Separator" context="#pop"/></context></contexts><itemDatas><itemData name="Label" defStyleNum="dsFunction"/><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Instruction" defStyleNum="dsKeyword"/><itemData name="Unknown Instruction" defStyleNum="dsKeyword"/><itemData name="Branch Instruction" defStyleNum="dsControlFlow"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Directive" defStyleNum="dsDataType"/><itemData name="Unknown Directive" defStyleNum="dsDataType"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Binary" defStyleNum="dsBaseN"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Operator" defStyleNum="dsOperator"/><itemData name="Symbol Separator" defStyleNum="dsOperator"/></itemDatas></highlighting><general><comments><comment name="singleLine" start=";"/></comments><keywords casesensitive="1" weakDeliminator="." additionalDeliminator="#"/></general></language> |