Damson/assets/syntax/verilog.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
6.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Verilog" version="8" kateversion="5.62" section="Hardware" extensions="*.v;*.V;*.vl" mimetype="text/x-verilog-src" author="Yevgen Voronenko ([email protected]), Ryan Dalzell ([email protected])" license=""><highlighting><list name="keywords"><item>always</item><item>assign</item><item>cell</item><item>config</item><item>deassign</item><item>default</item><item>defparam</item><item>design</item><item>disable</item><item>edge</item><item>else</item><item>endconfig</item><item>endspecify</item><item>endtable</item><item>for</item><item>force</item><item>forever</item><item>if</item><item>ifnone</item><item>initial</item><item>instance</item><item>liblist</item><item>library</item><item>macromodule</item><item>negedge</item><item>posedge</item><item>release</item><item>repeat</item><item>specify</item><item>specparam</item><item>table</item><item>use</item><item>wait</item><item>while</item></list><list name="beginwords"><item>begin</item><item>case</item><item>casex</item><item>casez</item><item>fork</item><item>function</item><item>generate</item><item>module</item><item>task</item></list><list name="endwords"><item>end</item><item>endcase</item><item>endfunction</item><item>endgenerate</item><item>endmodule</item><item>endtask</item><item>join</item></list><list name="strength"><item>highz0</item><item>highz1</item><item>large</item><item>medium</item><item>pull0</item><item>pull1</item><item>small</item><item>strong0</item><item>strong1</item><item>weak0</item><item>weak1</item></list><list name="gates"><item>and</item><item>buf</item><item>bufif0</item><item>bufif1</item><item>cmos</item><item>nand</item><item>nmos</item><item>nor</item><item>not</item><item>notif0</item><item>notif1</item><item>or</item><item>pmos</item><item>pulldown</item><item>pullup</item><item>rcmos</item><item>rnmos</item><item>rpmos</item><item>rtran</item><item>rtranif0</item><item>rtranif1</item><item>tran</item><item>tranif0</item><item>tranif1</item><item>xnor</item><item>xor</item></list><list name="types"><item>automatic</item><item>event</item><item>genvar</item><item>inout</item><item>input</item><item>integer</item><item>localparam</item><item>output</item><item>parameter</item><item>real</item><item>realtime</item><item>reg</item><item>scalared</item><item>signed</item><item>supply0</item><item>supply1</item><item>time</item><item>tri</item><item>tri0</item><item>tri1</item><item>triand</item><item>trior</item><item>trireg</item><item>vectored</item><item>wand</item><item>wire</item><item>wor</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces/><RegExpr String="(begin|fork)\ *:" attribute="Keyword" context="Block name" beginRegion="Block"/><keyword String="beginwords" attribute="Keyword" beginRegion="Block"/><keyword String="endwords" attribute="Keyword" endRegion="Block"/><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><keyword String="strength" attribute="Drive/charge strength"/><keyword String="gates" attribute="Gate instantiation"/><RegExpr String="[\d_]*'d[\d_]+" attribute="Decimal"/><RegExpr String="[\d_]*'o[0-7xXzZ_]+" attribute="Octal"/><RegExpr String="[\d_]*'h[\da-fA-FxXzZ_]+" attribute="Hex"/><RegExpr String="[\d_]*'b[01_zZxX]+" attribute="Binary"/><Float attribute="Float"/><Int attribute="Integer"/><RegExpr String="[a-zA-Z0-9_, \t]+\s*:" attribute="Case label" firstNonSpace="1"/><DetectChar char='"' attribute="String" context="String"/><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/><AnyChar String="!%&amp;()+,-&lt;=+/:;>?[]^{|}~@" attribute="Symbol"/><DetectChar char="`" attribute="Preprocessor" context="Preprocessor" column="0"/><RegExpr String="\`[a-zA-Z_]+\w*" attribute="Preprocessor"/><RegExpr String="\$[a-zA-Z_]+\w*" attribute="System Task"/><RegExpr String="#[\d_]+" attribute="Delay"/></context><context name="Commentar 1" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Some Context" attribute="Normal Text" lineEndContext="#pop"/><context name="Block name" attribute="Block name" lineEndContext="#pop"><DetectIdentifier attribute="Data Type" context="#pop"/></context><context name="Commentar 2" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="Commentar/Preprocessor" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><LineContinue attribute="Preprocessor" context="Some Context"/><RangeDetect char1='"' char='"' attribute="Prep. Lib"/><RangeDetect char1=">" char="&lt;" attribute="Prep. Lib"/><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar/Preprocessor" beginRegion="Comment"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String" context="Some Context"/><HlCStringChar attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Data Type" defStyleNum="dsDataType"/><itemData name="Decimal" defStyleNum="dsBaseN"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Binary" defStyleNum="dsBaseN"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator"/><itemData name="Preprocessor" defStyleNum="dsOthers"/><itemData name="Prep. Lib" defStyleNum="dsFloat"/><itemData name="System Task" defStyleNum="dsDataType"/><itemData name="Integer" defStyleNum="dsDecVal"/><itemData name="Delay" defStyleNum="dsBaseN"/><itemData name="Block name" defStyleNum="dsDataType"/><itemData name="Drive/charge strength" defStyleNum="dsBaseN"/><itemData name="Gate instantiation" defStyleNum="dsDataType"/><itemData name="Case label" defStyleNum="dsDecVal"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language>