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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Agda" version="10" kateversion="5.62" section="Sources" extensions="*.agda" mimetype="text/x-agda" author="Matthias C. M. Troffaes" license="LGPL"><highlighting><list name="reserved keywords"><item>abstract</item><item>codata</item><item>coinductive</item><item>constructor</item><item>data</item><item>do</item><item>eta-equality</item><item>field</item><item>forall</item><item>hiding</item><item>import</item><item>in</item><item>inductive</item><item>infix</item><item>infixl</item><item>infixr</item><item>instance</item><item>interleaved</item><item>let</item><item>macro</item><item>module</item><item>mutual</item><item>no-eta-equality</item><item>opaque</item><item>open</item><item>overlap</item><item>pattern</item><item>postulate</item><item>primitive</item><item>private</item><item>public</item><item>quote</item><item>quoteTerm</item><item>record</item><item>renaming</item><item>rewrite</item><item>syntax</item><item>tactic</item><item>to</item><item>unfolding</item><item>unquote</item><item>unquoteDecl</item><item>unquoteDef</item><item>using</item><item>variable</item><item>where</item><item>with</item></list><contexts><context name="code" attribute="Normal"><RegExpr String="\{-#.*#-\}" attribute="Pragma"/><keyword String="reserved keywords" attribute="Keyword"/><RegExpr String='(?:Prop[₀-₉]+|Prop[0-9]*|Set[₀-₉]+|Set[0-9]*)(?=[_;."(){}@]|\s|$)' attribute="Type"/><RegExpr String='(?:\->|→|∀|λ|:|=|\|)(?=[_;."(){}@]|\s|$)' attribute="Special"/><RegExpr String='\d+(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)(?=[_;."(){}@]|\s|$)' attribute="Float"/><RegExpr String='[0-9]+(?=[_;."(){}@]|\s|$)' attribute="Decimal"/><DetectChar char="'" attribute="Char" context="char"/><DetectChar char='"' attribute="String" context="string"/><StringDetect String="--" attribute="Comment" context="comment"/><StringDetect String="{-" attribute="Comment" context="comments" beginRegion="CommentBlock"/><StringDetect String="{!" attribute="Hole" context="hole"/><AnyChar String='_;."(){}@\\' attribute="Special"/><RegExpr String='[^_;."(){}@\s]+' attribute="Normal"/></context><context name="comments" attribute="Comment" noIndentationBasedFolding="1"><StringDetect String="{-" attribute="Comment" context="comments" beginRegion="CommentBlock"/><StringDetect String="-}" attribute="Comment" context="#pop" endRegion="CommentBlock"/><IncludeRules context="##Comments"/></context><context name="char" attribute="Char" lineEndContext="#pop"><StringDetect String="\'" attribute="Char"/><DetectChar char="'" attribute="Char" context="#pop"/></context><context name="comment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="hole" attribute="Hole"><StringDetect String="!}" attribute="Hole" context="#pop"/></context><context name="string" attribute="String"><StringDetect String='\"' attribute="String"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Pragma" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Hole" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Special" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/></itemDatas></highlighting><general><folding indentationsensitive="1"/><comments><comment name="singleLine" start="--" position="afterwhitespace"/><comment name="multiLine" start="{-" end="-}" region="CommentBlock"/></comments><keywords casesensitive="1" weakDeliminator=":!+,-&lt;=>%&amp;*/?[]^|~\\" additionalDeliminator='_;."(){}@'/></general></language>