Damson/assets/syntax/dot.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.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="dot" alternativeNames="Graphviz" version="6" kateversion="5.62" section="Scientific" extensions="*.dot" mimetype="text/x-dot" author="Postula Loïs ([email protected])" priority="0"><highlighting><list name="keywords"><item>digraph</item><item>edge</item><item>node</item><item>subgraph</item></list><list name="attributes"><item>URL</item><item>arrowhead</item><item>arrowsize</item><item>arrowtail</item><item>bgcolor</item><item>center</item><item>color</item><item>constraint</item><item>decorateP</item><item>dir</item><item>distortion</item><item>fillcolor</item><item>fontcolor</item><item>fontname</item><item>fontsize</item><item>headclip</item><item>headlabel</item><item>height</item><item>label</item><item>labelangle</item><item>labeldistance</item><item>labelfontcolor</item><item>labelfontname</item><item>labelfontsize</item><item>layer</item><item>layers</item><item>margin</item><item>mclimit</item><item>minlen</item><item>name</item><item>nodesep</item><item>nslimit</item><item>ordering</item><item>orientation</item><item>page</item><item>pagedir</item><item>peripheries</item><item>port_label_distance</item><item>rank</item><item>rankdir</item><item>ranksep</item><item>ratio</item><item>regular</item><item>rotate</item><item>samehead</item><item>sametail</item><item>shape</item><item>shapefile</item><item>sides</item><item>size</item><item>skew</item><item>style</item><item>tailclip</item><item>taillabel</item><item>weight</item><item>width</item></list><contexts><context name="Normal" attribute="Normal Text"><IncludeRules context="DetectAll"/></context><context name="DetectAll" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><keyword String="attributes" attribute="Attribute"/><DetectChar char='"' attribute="String" context="String"/><AnyChar String=";=" attribute="Symbol"/><StringDetect String="->" attribute="Symbol"/><Float attribute="Number"/><Int attribute="Number"/><RegExpr String="\b\w+\b" attribute="Identifier"/><IncludeRules context="DetectComments"/><DetectChar char="{" attribute="Symbol" context="RegionCurly" beginRegion="curly"/><DetectChar char="[" attribute="Symbol" context="RegionSquare" beginRegion="square"/><DetectChar char="(" attribute="Symbol" context="RegionParen" beginRegion="paren"/><AnyChar String=")]}" attribute="Error"/></context><context name="CommentML" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="CommentSL" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="DetectComments" attribute="Normal Text"><StringDetect String="//" attribute="Comment" context="CommentSL"/><StringDetect String="/*" attribute="Comment" context="CommentML" beginRegion="Comment"/></context><context name="RegionCurly" attribute="Comment"><DetectChar char="}" attribute="Symbol" context="#pop" endRegion="curly"/><IncludeRules context="DetectAll"/></context><context name="RegionParen" attribute="Comment"><DetectChar char=")" attribute="Symbol" context="#pop" endRegion="paren"/><IncludeRules context="DetectAll"/></context><context name="RegionSquare" attribute="Comment"><DetectChar char="]" attribute="Symbol" context="#pop" endRegion="square"/><IncludeRules context="DetectAll"/></context><context name="String" attribute="String" lineEndContext="#pop"><StringDetect String="\\" attribute="String Char"/><StringDetect String='\"' 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="Attribute" defStyleNum="dsAttribute"/><itemData name="Symbol" defStyleNum="dsOthers"/><itemData name="Number" defStyleNum="dsDecVal"/><itemData name="Identifier" defStyleNum="dsVariable"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsSpecialChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Error" defStyleNum="dsError"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language>