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]>
1 line
No EOL
5.1 KiB
XML
1 line
No EOL
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Objective Caml Ocamlyacc" section="Sources" extensions="*.mly" mimetype="" version="7" kateversion="6.22" priority="10" author="Glyn Webster ([email protected]) and Vincent Hugot ([email protected])" license="LGPL"><highlighting><list name="typed symbol list keywords"><item>%token</item><item>%type</item></list><list name="symbol list keywords"><item>%left</item><item>%nonassoc</item><item>%right</item><item>%start</item></list><list name="rule keywords"><item>%prec</item><item>error</item></list><contexts><context name="Declarations" attribute="Error"><StringDetect String="%{" attribute="Normal" context="Header" beginRegion="header"/><keyword String="typed symbol list keywords" attribute="Keyword" context="Typed Symbol List"/><keyword String="symbol list keywords" attribute="Keyword" context="Symbol List"/><StringDetect String="%%" attribute="Normal" context="Rules"/><IncludeRules context="General"/></context><context name="General" attribute="Normal"><DetectSpaces attribute="Normal"/><StringDetect String="/*" attribute="Comment" context="Comment" beginRegion="comment"/></context><context name="Action" attribute="Normal"><DetectChar char="}" attribute="Normal" context="#pop" endRegion="action"/><RegExpr String="[$][0-9]+" attribute="Semantic Attribute"/><DetectChar char="{" context="Nested Action 1"/><DetectChar char="[" context="Nested Action 2"/><IncludeRules context="##Objective Caml" includeAttrib="1"/></context><context name="Symbol List" attribute="Error" lineEndContext="#pop"><RegExpr String="`?[A-Z\340-\366\370-\377][a-z\300-\326\330-\337A-Z\340-\366\370-\3770-9_']*" attribute="Uppercase Name (Token)"/><RegExpr String="[a-z\300-\326\330-\337_][a-z\300-\326\330-\337A-Z\340-\366\370-\3770-9_']*" attribute="Lowercase Name (Rule)"/><IncludeRules context="General"/></context><context name="Comment" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="comment"/><StringDetect String="/*" attribute="Comment" context="Comment" beginRegion="comment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Trailer" attribute="Normal"><IncludeRules context="##Objective Caml" includeAttrib="1"/></context><context name="Header" attribute="Normal"><StringDetect String="%}" attribute="Normal" context="#pop" endRegion="header"/><IncludeRules context="##Objective Caml" includeAttrib="1"/></context><context name="Nested Action 1" attribute="Normal"><DetectChar char="}" context="#pop"/><IncludeRules context="Action" includeAttrib="1"/></context><context name="Nested Action 2" attribute="Normal"><DetectChar char="]" context="#pop"/><IncludeRules context="Action" includeAttrib="1"/></context><context name="Rule" attribute="Error"><DetectChar char=";" attribute="Normal" context="#pop#pop" endRegion="rule"/><DetectChar char="|" attribute="Normal"/><keyword String="rule keywords" attribute="Keyword"/><RegExpr String="`?[A-Z\340-\366\370-\377][a-z\300-\326\330-\337A-Z\340-\366\370-\3770-9_']*" attribute="Uppercase Name (Token)"/><RegExpr String="[a-z\300-\326\330-\337_][a-z\300-\326\330-\337A-Z\340-\366\370-\3770-9_']*" attribute="Lowercase Name (Rule)"/><DetectChar char="{" attribute="Normal" context="Action" beginRegion="action"/><IncludeRules context="General"/></context><context name="Rule, Expecting Colon" attribute="Error"><DetectChar char=":" attribute="Normal" context="Rule"/><StringDetect String="%%" attribute="Error" context="Trailer"/><IncludeRules context="General"/></context><context name="Rules" attribute="Error"><StringDetect String="%%" attribute="Normal" context="Trailer"/><RegExpr String="`?[a-z\300-\326\330-\337A-Z\340-\366\370-\377][a-z\300-\326\330-\337A-Z\340-\366\370-\3770-9_']*" attribute="Rule Definition Name" context="Rule, Expecting Colon" beginRegion="rule"/><IncludeRules context="General"/></context><context name="Type" attribute="Normal"><DetectChar char=">" attribute="Normal" context="#pop"/><IncludeRules context="##Objective Caml" includeAttrib="1"/></context><context name="Typed Symbol List" attribute="Error" lineEndContext="#pop"><DetectChar char="<" attribute="Normal" context="Type"/><RegExpr String="`?[A-Z\340-\366\370-\377][a-z\300-\326\330-\337A-Z\340-\366\370-\3770-9_']*" attribute="Uppercase Name (Token)" context="Symbol List"/><RegExpr String="[a-z\300-\326\330-\337_][a-z\300-\326\330-\337A-Z\340-\366\370-\3770-9_']*" attribute="Lowercase Name (Rule)" context="Symbol List"/><IncludeRules context="General"/></context></contexts><itemDatas><itemData name="Keyword" defStyleNum="dsOthers" bold="1"/><itemData name="Normal" defStyleNum="dsOthers"/><itemData name="Uppercase Name (Token)" defStyleNum="dsOthers"/><itemData name="Lowercase Name (Rule)" defStyleNum="dsOthers" italic="1"/><itemData name="Rule Definition Name" defStyleNum="dsOthers" italic="1" bold="1"/><itemData name="Semantic Attribute" defStyleNum="dsOthers"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Error" defStyleNum="dsError"/></itemDatas></highlighting><general><keywords casesensitive="1" weakDeliminator="%"/><comments><comment name="multiLine" start="/*" end="*/" region="comment"/></comments></general></language> |