Damson/assets/syntax/component-pascal.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
5.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Component-Pascal" version="5" kateversion="5.62" section="Sources" extensions="*.cp;*.bro" mimetype="text/x-component-pascal" author="Werner Braun ([email protected])" license=""><highlighting><list name="keywords"><item>BEGIN</item><item>BY</item><item>CASE</item><item>CLOSE</item><item>CONST</item><item>DO</item><item>ELSE</item><item>ELSIF</item><item>END</item><item>FOR</item><item>IF</item><item>IMPORT</item><item>LOOP</item><item>MODULE</item><item>NEW</item><item>OF</item><item>OUT</item><item>PROCEDURE</item><item>REPEAT</item><item>THEN</item><item>TO</item><item>TYPE</item><item>UNTIL</item><item>VAR</item><item>WHILE</item><item>WITH</item></list><list name="exits"><item>ASSERT</item><item>EXIT</item><item>HALT</item><item>RETURN</item></list><list name="types"><item>ANYPTR</item><item>ANYREC</item><item>ARRAY</item><item>BOOLEAN</item><item>BYTE</item><item>CHAR</item><item>INTEGER</item><item>LONGINT</item><item>POINTER</item><item>REAL</item><item>RECORD</item><item>SET</item><item>SHORTCHAR</item><item>SHORTINT</item><item>SHORTREAL</item></list><list name="attributes"><item>ABSTRACT</item><item>EMPTY</item><item>EXTENSIBLE</item><item>LIMITED</item></list><list name="builtins"><item>ABS</item><item>ASH</item><item>BITS</item><item>CAP</item><item>CHR</item><item>DEC</item><item>ENTIER</item><item>EXCL</item><item>INC</item><item>INCL</item><item>LEN</item><item>LONG</item><item>MAX</item><item>MIN</item><item>ODD</item><item>ORD</item><item>SHORT</item><item>SIZE</item></list><list name="specials"><item>FALSE</item><item>INF</item><item>NIL</item><item>TRUE</item></list><contexts><context name="Normal" attribute="Normal Text"><StringDetect String="(**" attribute="CommentMaior" context="Comment1" beginRegion="Comment"/><StringDetect String="(*" attribute="CommentMinor" context="Comment2" beginRegion="Comment"/><DetectChar char='"' attribute="String" context="String1"/><DetectChar char="'" attribute="String" context="String2"/><RegExpr String="PROCEDURE\s" attribute="Keyword" beginRegion="Proc"/><RegExpr String="ABSTRACT;|EMPTY;|END\s*[A-Za-z][A-Za-z0-9_]*\;" attribute="Normal Text" endRegion="Proc"/><StringDetect String="RECORD" attribute="Type" beginRegion="Rec"/><StringDetect String="END" attribute="Keyword" endRegion="Rec"/><StringDetect String="NEW" attribute="MemAlloc"/><keyword String="keywords" attribute="Keyword"/><keyword String="exits" attribute="Exit"/><keyword String="types" attribute="Type"/><keyword String="attributes" attribute="Attribute"/><keyword String="builtins" attribute="Builtin"/><keyword String="specials" attribute="SpecialValues"/><RegExpr String="\s[\+|\-]{0,1}[0-9]([0-9]*|[0-9A-F]*(H|L))" attribute="Integer"/><Float attribute="Float"/><RegExpr String="\s[0-9][0-9A-F]*X" attribute="Char"/><RegExpr String="[A-Za-z][A-Za-z0-9_]*\*" attribute="ExportFull"/><RegExpr String="[A-Za-z][A-Za-z0-9_]*\-" attribute="ExportReadOnly"/><RegExpr String="\s(=|#|&lt;|&lt;=|>|>=|IN\s|IS)" attribute="Relation"/><RegExpr String="\s(\+|\-|OR|\*|/|DIV|MOD|\&amp;)" attribute="Operator"/></context><context name="CommentN" attribute="CommentMinor"><StringDetect String="*)" attribute="CommentMinor" context="#pop"/><StringDetect String="(*" attribute="CommentMinor" context="CommentN2"/><IncludeRules context="##Comments"/></context><context name="Comment1" attribute="CommentMaior"><StringDetect String="*)" attribute="CommentMaior" context="#pop" endRegion="Comment"/><StringDetect String="(*" attribute="CommentMinor" context="CommentN"/><IncludeRules context="##Comments"/></context><context name="Comment2" attribute="CommentMinor"><StringDetect String="*)" attribute="CommentMinor" context="#pop" endRegion="Comment"/><StringDetect String="(*" attribute="CommentMinor" context="CommentN"/><IncludeRules context="##Comments"/></context><context name="CommentN2" attribute="CommentMinor"><StringDetect String="*)" attribute="CommentMinor" context="#pop"/><IncludeRules context="##Comments"/></context><context name="String1" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/></context><context name="String2" attribute="String"><DetectChar char="'" attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="CommentMaior" defStyleNum="dsComment"/><itemData name="CommentMinor" defStyleNum="dsComment"/><itemData name="String" defStyleNum="dsString"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="MemAlloc" defStyleNum="dsKeyword"/><itemData name="Exit" defStyleNum="dsKeyword"/><itemData name="Type" defStyleNum="dsDataType"/><itemData name="Attribute" defStyleNum="dsOthers"/><itemData name="Builtin" defStyleNum="dsNormal"/><itemData name="Integer" defStyleNum="dsBaseN"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="SpecialValues" defStyleNum="dsDecVal"/><itemData name="ExportFull" defStyleNum="dsOthers"/><itemData name="ExportReadOnly" defStyleNum="dsOthers"/><itemData name="Relation" defStyleNum="dsNormal"/><itemData name="Operator" defStyleNum="dsNormal"/></itemDatas></highlighting><general><keywords casesensitive="1"/><comments><comment name="multiLine" start="(*" end="*)" region="Comment"/></comments></general></language>