Damson/assets/syntax/picsrc.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="PicAsm" version="7" kateversion="5.62" section="Assembler" extensions="*.src;*.SRC;*.asm;*.ASM;*.pic;*.PIC" mimetype="text/x-PicSrc;text/x-PicHdr" author="Alain GIBAUD ([email protected])" license="LGPL"><highlighting><list name="directives"><item>__BADRAM</item><item>__CONFIG</item><item>__IDLOCS</item><item>__MAXRAM</item><item>cblock</item><item>constant</item><item>da</item><item>data</item><item>db</item><item>de</item><item>dt</item><item>dw</item><item>end</item><item>endc</item><item>endm</item><item>equ</item><item>error</item><item>errorlevel</item><item>exitm</item><item>fill</item><item>list</item><item>local</item><item>macro</item><item>messg</item><item>noexpand</item><item>nolist</item><item>org</item><item>page</item><item>processor</item><item>radix</item><item>res</item><item>set</item><item>space</item><item>subtitle</item><item>title</item><item>variable</item></list><list name="conditional"><item>else</item><item>endif</item><item>endw</item><item>idef</item><item>if</item><item>ifndef</item><item>include</item><item>while</item></list><list name="gpasm_macro"><item>addcf</item><item>b</item><item>clrc</item><item>clrz</item><item>movfw</item><item>setc</item><item>setz</item><item>skpc</item><item>skpnc</item><item>skpnz</item><item>skpz</item><item>subcf</item><item>tstf</item></list><list name="branch instructions"><item>bc</item><item>bnc</item><item>bnz</item><item>bra</item><item>brw</item><item>bz</item><item>call</item><item>goto</item></list><list name="instructions"><item>addlw</item><item>addwf</item><item>addwfc</item><item>andlw</item><item>andwf</item><item>bcf</item><item>bn</item><item>bnov</item><item>bov</item><item>bsf</item><item>btfsc</item><item>btfss</item><item>btg</item><item>clrf</item><item>clrw</item><item>clrwdt</item><item>comf</item><item>cpfseq</item><item>cpfsgt</item><item>cpfslt</item><item>daw</item><item>dcfsnz</item><item>decf</item><item>decfsz</item><item>incf</item><item>incfsz</item><item>infsnz</item><item>iorlw</item><item>iorwf</item><item>lfsr</item><item>movf</item><item>movff</item><item>movlb</item><item>movlw</item><item>movwf</item><item>mullw</item><item>mulwf</item><item>negf</item><item>nop</item><item>option</item><item>pop</item><item>push</item><item>rcall</item><item>reset</item><item>retfie</item><item>retlw</item><item>return</item><item>rlcf</item><item>rlf</item><item>rlncf</item><item>rrcf</item><item>rrf</item><item>rrncf</item><item>setf</item><item>sleep</item><item>subfwb</item><item>sublw</item><item>subwf</item><item>subwfb</item><item>swapf</item><item>tblrd</item><item>tblwt</item><item>tstfsz</item><item>xorlw</item><item>xorwf</item></list><list name="instruction_attr"><item>A</item><item>ACCESS</item><item>BANKED</item><item>F</item><item>W</item></list><list name="preprocessor"><item>define</item><item>undefine</item><item>v</item></list><list name="comment instructions"><item>AUTHOR</item><item>EMAIL</item><item>INPUT</item><item>OUTPUT</item><item>PARAMETERS</item></list><contexts><context name="normal" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><keyword String="directives" attribute="Directives" context="Operands" insensitive="1"/><keyword String="conditional" attribute="Preprocessor" context="Operands"/><DetectIdentifier attribute="Label" context="EndLabel" column="0"/><keyword String="instructions" attribute="Instructions" context="Operands" insensitive="1"/><keyword String="branch instructions" attribute="Branch Instructions" context="Operands" insensitive="1"/><keyword String="instruction_attr" attribute="InstructionAttr" context="Operands" insensitive="1"/><keyword String="gpasm_macro" attribute="GPASM-macros" context="Operands" insensitive="1"/><DetectIdentifier attribute="Unknown Instructions" context="Operands"/><DetectChar char=";" attribute="Comment" context="#pop!comment"/><DetectChar char="#" attribute="Preprocessor" context="preprocessor1"/></context><context name="Operands" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char="0" attribute="Unbased Numbers" context="Number16or10" lookAhead="1"/><Int attribute="Unbased Numbers" context="CheckNumberSuffix"/><DetectChar char="." attribute="Based Numbers" context="Number10"/><HlCChar attribute="Char"/><StringDetect String="A'" attribute="Char" context="ASCIIChar"/><StringDetect String="a'" attribute="Char" context="ASCIIChar"/><StringDetect String="B'" attribute="Based Numbers" context="binaryDigits"/><StringDetect String="b'" attribute="Based Numbers" context="binaryDigits"/><StringDetect String="H'" attribute="Based Numbers" context="hexDigits"/><StringDetect String="h'" attribute="Based Numbers" context="hexDigits"/><StringDetect String="O'" attribute="Based Numbers" context="octDigits"/><StringDetect String="o'" attribute="Based Numbers" context="octDigits"/><StringDetect String="D'" attribute="Based Numbers" context="decimalDigits"/><StringDetect String="d'" attribute="Based Numbers" context="decimalDigits"/><DetectChar char='"' attribute="String" context="string"/><DetectChar char=";" attribute="Comment" context="#pop!comment"/><DetectChar char="#" attribute="Preprocessor" context="preprocessor2"/><AnyChar String=",-/*%+=>&lt;&amp;|^!~()" attribute="Symbol"/><DetectIdentifier attribute="Normal Text"/></context><context name="QuotedNumEnd" attribute="Error" lineEndContext="#pop#pop"><DetectChar char="'" attribute="Based Numbers" context="#pop#pop"/><RegExpr String="." attribute="Error" context="#pop#pop"/></context><context name="CheckNumberSuffix" attribute="Based Numbers" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces attribute="Normal Text" context="#pop"/><AnyChar String=",-/*%+=>&lt;&amp;|^!~" attribute="Symbol" context="#pop"/><RegExpr String="[\d\w]+" attribute="Error" context="#pop"/></context><context name="ASCIIChar" attribute="Char" lineEndContext="#pop"><RegExpr String="." attribute="Char" context="QuotedASCIICharEnd"/></context><context name="EndLabel" attribute="Label" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="#v" attribute="Char" context="#pop!LabelReplaceMacro"/><DetectChar char=":" attribute="Symbol" context="#pop"/></context><context name="Number16" attribute="Hex" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="[0-9A-Fa-f]+" attribute="Hex" context="#pop!CheckNumberSuffix"/></context><context name="ReplaceMacro" attribute="Label" lineEndContext="#pop"><DetectChar char="(" attribute="Symbol" context="ReplaceMacro2"/><DetectChar char=")" attribute="Symbol" context="#pop!ContinueLabel"/><IncludeRules context="Operands"/></context><context name="binaryDigits" attribute="Binary" fallthroughContext="QuotedNumEnd" lineEndContext="#pop"><RegExpr String="[01]+" attribute="Binary" context="QuotedNumEnd"/></context><context name="comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces attribute="Comment"/><IncludeRules context="##Comments"/><keyword String="comment instructions" attribute="Instructions" insensitive="0"/><DetectIdentifier attribute="Comment"/></context><context name="decimalDigits" attribute="Unbased Numbers" fallthroughContext="QuotedNumEnd" lineEndContext="#pop"><RegExpr String="\d+" attribute="Unbased Numbers" context="QuotedNumEnd"/></context><context name="hexDigits" attribute="Hex" fallthroughContext="QuotedNumEnd" lineEndContext="#pop"><RegExpr String="[0-9A-Fa-f]+" attribute="Hex" context="QuotedNumEnd"/></context><context name="octDigits" attribute="Octal" fallthroughContext="QuotedNumEnd" lineEndContext="#pop"><RegExpr String="[0-7]+" attribute="Octal" context="QuotedNumEnd"/></context><context name="ContinueLabel" attribute="Label" fallthroughContext="#pop" lineEndContext="#pop"><DetectIdentifier attribute="Label" context="#pop!EndLabel"/><DetectChar char=":" attribute="Symbol" context="#pop"/></context><context name="LabelReplaceMacro" attribute="Label" fallthroughContext="#pop" lineEndContext="#pop"><DetectChar char="(" attribute="Symbol" context="#pop!ReplaceMacro"/></context><context name="Number10" attribute="Based Numbers" fallthroughContext="#pop" lineEndContext="#pop"><Int attribute="Unbased Numbers" context="#pop!CheckNumberSuffix"/></context><context name="Number16or10" attribute="Based Numbers" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="0x" attribute="Based Numbers" context="#pop!Number16"/><StringDetect String="0X" attribute="Based Numbers" context="#pop!Number16"/><Int attribute="Unbased Numbers" context="#pop!CheckNumberSuffix"/></context><context name="QuotedASCIICharEnd" attribute="Error" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><DetectChar char="'" attribute="Char" context="#pop#pop"/><RegExpr String="." attribute="Error" context="#pop#pop"/></context><context name="ReplaceMacro2" attribute="Label" lineEndContext="#pop"><DetectChar char="(" attribute="Symbol" context="ReplaceMacro"/><DetectChar char=")" attribute="Symbol" context="#pop"/><IncludeRules context="Operands"/></context><context name="preprocessor1" attribute="Preprocessor" fallthroughContext="#pop!Operands" lineEndContext="#pop"><keyword String="preprocessor" attribute="Preprocessor" context="#pop!Operands" insensitive="1"/><DetectIdentifier attribute="Error" context="#pop!Operands"/></context><context name="preprocessor2" attribute="Preprocessor" fallthroughContext="#pop" lineEndContext="#pop"><keyword String="preprocessor" attribute="Preprocessor" context="#pop" insensitive="1"/><DetectIdentifier attribute="Error" context="#pop"/></context><context name="string" attribute="String" lineEndContext="#pop"><LineContinue attribute="String"/><HlCStringChar attribute="Char"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Label" defStyleNum="dsFunction"/><itemData name="Directives" defStyleNum="dsOthers"/><itemData name="Preprocessor" defStyleNum="dsPreprocessor"/><itemData name="Instructions" defStyleNum="dsKeyword"/><itemData name="Unknown Instructions" defStyleNum="dsNormal"/><itemData name="Branch Instructions" defStyleNum="dsControlFlow"/><itemData name="InstructionAttr" defStyleNum="dsNormal" color="#000080" selColor="#000080" bold="0" italic="1"/><itemData name="Unbased Numbers" defStyleNum="dsDecVal"/><itemData name="Based Numbers" defStyleNum="dsBaseN"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Binary" defStyleNum="dsBaseN"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator"/><itemData name="GPASM-macros" defStyleNum="dsNormal" color="#000000" selColor="#000000" bold="1" italic="1"/><itemData name="Error" defStyleNum="dsError"/></itemDatas></highlighting><general><comments><comment name="singleLine" start=";"/></comments><keywords casesensitive="1" additionalDeliminator="#"/></general></language>