Damson/assets/syntax/ahdl.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
4.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="AHDL" version="6" kateversion="5.62" section="Hardware" extensions="*.ahdl;*.tdf" mimetype="text/x-ahdl" author="Dominik Haumann ([email protected])" license="MIT"><highlighting><list name="keywords"><item>assert</item><item>bidir</item><item>bits</item><item>buried</item><item>case</item><item>clique</item><item>connected_pins</item><item>constant</item><item>defaults</item><item>define</item><item>design</item><item>device</item><item>else</item><item>elsif</item><item>for</item><item>function</item><item>generate</item><item>gnd</item><item>help_id</item><item>in</item><item>include</item><item>input</item><item>is</item><item>machine</item><item>node</item><item>of</item><item>options</item><item>others</item><item>output</item><item>parameters</item><item>returns</item><item>states</item><item>subdesign</item><item>then</item><item>title</item><item>to</item><item>tri_state_node</item><item>variable</item><item>vcc</item><item>when</item><item>with</item></list><list name="types"><item>carry</item><item>cascade</item><item>dff</item><item>dffe</item><item>exp</item><item>global</item><item>jkff</item><item>jkffe</item><item>latch</item><item>lcell</item><item>mcell</item><item>memory</item><item>opendrn</item><item>soft</item><item>srff</item><item>srffe</item><item>tff</item><item>tffe</item><item>tri</item><item>wire</item><item>x</item></list><list name="operator"><item>and</item><item>ceil</item><item>div</item><item>floor</item><item>log2</item><item>mod</item><item>nand</item><item>nor</item><item>not</item><item>or</item><item>used</item><item>xnor</item><item>xor</item></list><contexts><context name="normal" attribute="Normal Text"><RegExpr String="\bdefaults\b" attribute="Keyword" beginRegion="def" insensitive="1"/><RegExpr String="\bend\s+defaults\b" attribute="Keyword" endRegion="def" insensitive="1"/><RegExpr String="\bif\b" attribute="Keyword" beginRegion="if" insensitive="1"/><RegExpr String="\bend\s+if\b" attribute="Keyword" endRegion="if" insensitive="1"/><RegExpr String="\btable\b" attribute="Keyword" beginRegion="table" insensitive="1"/><RegExpr String="\bend\s+table\b" attribute="Keyword" endRegion="table" insensitive="1"/><RegExpr String="\bcase\b" attribute="Keyword" beginRegion="case" insensitive="1"/><RegExpr String="\bend\s+case\b" attribute="Keyword" endRegion="case" insensitive="1"/><RegExpr String="\bbegin\b" attribute="Keyword" beginRegion="block" insensitive="1"/><RegExpr String="\bend\b" attribute="Keyword" endRegion="block" insensitive="1"/><DetectChar char="(" attribute="Normal Text" beginRegion="bracket"/><DetectChar char=")" attribute="Normal Text" endRegion="bracket"/><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><keyword String="operator" attribute="Operator"/><RegExpr String="\b(\d+)\b" attribute="Decimal"/><RegExpr String='\bb"(0|1|x)+"' attribute="Bit" insensitive="1"/><RegExpr String='\b(o|q)"[0-7*]"' attribute="Octal" insensitive="1"/><RegExpr String='\b(h|x)"[0-9a-f]*"' attribute="Hex" insensitive="1"/><DetectChar char='"' attribute="String" context="string"/><RegExpr String="--\s*BEGIN.*$" attribute="Region Marker" beginRegion="region" firstNonSpace="1"/><RegExpr String="--\s*END.*$" attribute="Region Marker" endRegion="region" firstNonSpace="1"/><StringDetect String="--" attribute="Comment" context="LineComment"/><DetectChar char="%" attribute="Comment" context="comment"/><HlCChar attribute="Char"/></context><context name="LineComment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="comment" attribute="Comment"><DetectChar char="%" attribute="Comment" context="#pop"/><IncludeRules context="##Comments"/></context><context name="string" attribute="String"><StringDetect String='\"' attribute="Char"/><DetectChar char='"' attribute="String" context="#pop"/></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="Comment" defStyleNum="dsComment"/><itemData name="String" defStyleNum="dsString"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="Bit" defStyleNum="dsDecVal" 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="Region Marker" defStyleNum="dsRegionMarker"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="--"/><comment name="multiLine" start="%" end="%" region="Comment"/></comments><keywords casesensitive="0"/></general></language>