Damson/assets/syntax/gdl.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="GDL" version="6" kateversion="5.62" section="Scientific" extensions="*.gdl;*.vcg;*.GDL;*.VCG" mimetype="" author="Christoph Cullmann ([email protected])" license="MIT"><highlighting><list name="colors"><item>aquamarine</item><item>black</item><item>blue</item><item>cyan</item><item>darkblue</item><item>darkcyan</item><item>darkgray</item><item>darkgreen</item><item>darkgrey</item><item>darkmagenta</item><item>darkred</item><item>darkyellow</item><item>gold</item><item>green</item><item>khaki</item><item>lightblue</item><item>lightcyan</item><item>lightgray</item><item>lightgreen</item><item>lightgrey</item><item>lightmagenta</item><item>lightred</item><item>lightyellow</item><item>lilac</item><item>magenta</item><item>orange</item><item>orchid</item><item>pink</item><item>purple</item><item>red</item><item>turquoise</item><item>white</item><item>yellow</item><item>yellowgreen</item></list><list name="shapes"><item>box</item><item>circle</item><item>ellipse</item><item>hexagon</item><item>lparallelogram</item><item>rhomb</item><item>rhomboid</item><item>rparallelogram</item><item>trapeze</item><item>trapezoid</item><item>triangle</item><item>uptrapeze</item><item>uptrapezoid</item></list><list name="states"><item>boxed</item><item>clustered</item><item>exclusive</item><item>folded</item><item>unfolded</item><item>white</item><item>wrapped</item></list><list name="algorithms"><item>dfs</item><item>forcedir</item><item>maxdegree</item><item>maxdepth</item><item>maxdepthslow</item><item>maxindegree</item><item>maxoutdegree</item><item>minbackward</item><item>mindegree</item><item>mindepth</item><item>mindepthslow</item><item>minindegree</item><item>minoutdegree</item><item>normal</item><item>tree</item></list><list name="forcedir"><item>attraction</item><item>randomfactor</item><item>randomimpulse</item><item>randomrounds</item><item>repulsion</item><item>tempmax</item><item>tempmin</item><item>tempscheme</item><item>temptreshold</item></list><list name="magnetic"><item>circular</item><item>no</item><item>orthogonal</item><item>polar</item><item>polcircular</item></list><list name="orientation"><item>bottom_to_top</item><item>bottomtotop</item><item>left_to_right</item><item>lefttoright</item><item>right_to_left</item><item>righttoleft</item><item>top_to_bottom</item><item>toptobottom</item></list><list name="lines"><item>continuous</item><item>dashed</item><item>dotted</item><item>double</item><item>invisible</item><item>solid</item><item>triple</item></list><list name="fisheye"><item>cfish</item><item>dcfish</item><item>dpfish</item><item>fcfish</item><item>fpfish</item><item>pfish</item></list><contexts><context name="default" attribute="Normal"><StringDetect String="//" attribute="Comment" context="ccomment"/><StringDetect String="/*" attribute="Comment" context="cppcomment" beginRegion="BlockComment"/><StringDetect String="focus" attribute="Keyword"/><RegExpr String="(graph|edge|node|region|backedge|(left|right|)(bent|)nearedge):" attribute="Keyword"/><RegExpr String="loc *:" attribute="Value"/><StringDetect String="colorentry" attribute="Value" context="centry"/><RegExpr String="arrow_?mode *:" attribute="Value" context="arrowmode"/><RegExpr String="(foldnode.|node.|)(text|border|)color *:|(foldedge.|edge.|)(arrow|backarrow|)color *:" attribute="Value" context="colorid"/><RegExpr String="(foldedge.|edge.|)(arrow|backarrow)style *:" attribute="Value" context="arrow"/><RegExpr String="(foldedge.|edge.|)linestyle *:|(foldnode.|node.|)borderstyle *:" attribute="Value" context="lineid"/><RegExpr String="view *:" attribute="Value" context="fishid"/><RegExpr String="(foldnode.|node.|)shape" attribute="Value" context="shapeid"/><RegExpr String="(source|target)(name|)|(title|(foldnode.|node.|foldedge.|edge.|)label|(foldnode.|node.|)info(1|2|3)|infoname(1|2|3)|useraction(name|cmd)(1|2|3|4)) *:" attribute="Value" context="lquote"/><RegExpr String="(foldnode.|node.|foldedge.|edge.|)fontname *:" attribute="Value" context="fontlq"/><RegExpr String="(crossing_?(optimization|phase2)|(dirty_edge_|display_edge_|displayedge|late_edge_|subgraph_?)labels|s?manhatt(a|e)n_?edges|(nodes|near_?edges|edges|splines) |equal(_y_|_?y)dist|(fast_?|)icons|fine_?tuning|(f?straight_?|priority_)phase|ignore_?singles|(in|out|)port_?sharing|linear_?segments|energetic) *:" attribute="Value" context="boolean"/><RegExpr String="(spreadlevel|(foldnode.|node.|foldedge.|edge.|)horizontal_?order|(foldnode.|node.|)(height|width|borderwidth|stretch|shrink)|(foldedge.|edge.|)(arrowsize|backarrowsize|thickness|class|priority)|anchor|iconcolors|hidden|layout_(up|down|near|spline)factor|border +(x|y)|splinefactor|(xspace|xbase|xmax|xraster|x|yspace|ybase|ymax|yraster|y|xlraster|xlspace)|magnetic_force(1|2)|(a|b|c|fd|p|r|s)(max)|(c|p|r)(min)) *:" attribute="Value" context="intval"/><keyword String="forcedir" attribute="Value" context="intval"/><StringDetect String="classname" attribute="Value" context="classname"/><RegExpr String="(foldnode.|node.|)(level|vertical_?order) *:" attribute="Value" context="nodelevel"/><RegExpr String="stat(e|us) *:" attribute="Value" context="stateid"/><RegExpr String="layout_?algorithm *:" attribute="Value" context="algid"/><RegExpr String="orientation *:" attribute="Value" context="orient"/><RegExpr String="node_alignment *:" attribute="Value" context="nodealign"/><RegExpr String="(foldnode.|node.|)textmode *:" attribute="Value" context="textmode"/><RegExpr String="crossing_?weight *:" attribute="Value" context="weight"/><RegExpr String="(gravity|tempfactor|treefactor) *:" attribute="Value" context="floatval"/><RegExpr String="magnetic_field(1|2) *:" attribute="Value" context="magnor"/><RegExpr String="scaling *:" attribute="Value" context="scaling"/></context><context name="longint" attribute="Normal" lineEndContext="default"><Int attribute="Integer" context="longint"/><DetectChar char=" " attribute="Normal" context="default"/></context><context name="intval" attribute="Normal"><Int attribute="Integer" context="longint"/></context><context name="lquote" attribute="Normal"><DetectChar char='"' attribute="String" context="string"/></context><context name="algid" attribute="Normal"><keyword String="algorithms" attribute="Datatype" context="default"/></context><context name="arrow" attribute="Normal"><RegExpr String="(solid|line|none)" attribute="Datatype" context="default"/></context><context name="arrowmode" attribute="Normal"><RegExpr String="(free|fixed)" attribute="Datatype" context="default"/></context><context name="boolean" attribute="Normal"><RegExpr String="(yes|no)" attribute="Datatype" context="default"/></context><context name="ccomment" attribute="Comment" lineEndContext="default"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="cecolon" attribute="Normal"><DetectChar char=":" attribute="Value" context="rgb"/></context><context name="centry" attribute="Normal" lineEndContext="default"><RegExpr String="[0-9][0-9]?" attribute="Value" context="cecolon"/></context><context name="classname" attribute="Normal"><RegExpr String="[0-9]+" attribute="Value"/><DetectChar char=":" attribute="Value" context="lquote"/></context><context name="colorid" attribute="Normal"><keyword String="colors" attribute="Datatype" context="default"/><RegExpr String="[0-9][0-9]?" attribute="Datatype" context="default"/></context><context name="cppcomment" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="default" endRegion="BlockComment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="fishid" attribute="Normal"><keyword String="fisheye" attribute="Datatype" context="default"/></context><context name="floatval" attribute="Normal"><Float attribute="Float" context="default"/></context><context name="fontbase" attribute="Normal"><RegExpr String="((tim|ncen)(R|B|I|BI)|(cour|helv)(R|B|O|BO)|symb)" attribute="Datatype" context="fontsize"/></context><context name="fontlq" attribute="Normal"><DetectChar char='"' attribute="Datatype" context="fontbase"/></context><context name="fontsize" attribute="Normal"><RegExpr String="(08|10|12|14|18|24)(.vcf|)" attribute="Datatype"/><DetectChar char='"' attribute="Datatype" context="default"/></context><context name="lineid" attribute="Normal"><keyword String="lines" attribute="Datatype" context="default"/></context><context name="magnor" attribute="Normal"><keyword String="magnetic" attribute="Datatype" context="default"/><keyword String="orientation" attribute="Datatype" context="default"/></context><context name="nodealign" attribute="Normal"><RegExpr String="(top|center|bottom)" attribute="Datatype" context="default"/></context><context name="nodelevel" attribute="Normal"><StringDetect String="maxlevel" attribute="Datatype" context="default"/><Int attribute="Integer" context="longint"/></context><context name="orient" attribute="Normal"><keyword String="orientation" attribute="Datatype" context="default"/></context><context name="rgb" attribute="Normal"><RegExpr String="[0-9][0-9]?[0-9]? +[0-9][0-9]?[0-9]? +[0-9][0-9]?[0-9]?" attribute="Integer" context="default"/></context><context name="scaling" attribute="Normal"><StringDetect String="maxspect" attribute="Datatype" context="default"/><Float attribute="Float" context="default"/></context><context name="shapeid" attribute="Normal"><keyword String="shapes" attribute="Datatype" context="default"/></context><context name="stateid" attribute="Normal"><keyword String="states" attribute="Datatype" context="default"/></context><context name="string" attribute="String"><DetectChar char='"' attribute="String" context="default"/><StringDetect String='\"' attribute="Char"/><RegExpr String="\\(n|a|t|b)|\\fi(0|1|2)[0-9][0-9]|\\f(u|I|b|B|n|[0-9][0-9])" attribute="Char"/></context><context name="textmode" attribute="Normal"><RegExpr String="(center|left_justify|right_justify)" attribute="Datatype" context="default"/></context><context name="weight" attribute="Normal"><RegExpr String="(medianbary|barymedian|bary|median)" attribute="Datatype" context="default"/></context></contexts><itemDatas><itemData name="Normal" defStyleNum="dsNormal"/><itemData name="String" defStyleNum="dsString"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Integer" defStyleNum="dsDecVal"/><itemData name="Datatype" defStyleNum="dsDataType"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Value" defStyleNum="dsOthers"/><itemData name="Float" defStyleNum="dsFloat"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="BlockComment"/></comments><keywords casesensitive="1"/></general></language>