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
2.4 KiB
XML
1 line
No EOL
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Objective Caml Ocamllex" section="Sources" extensions="*.mll" mimetype="" version="8" kateversion="6.22" priority="10" author="Glyn Webster ([email protected]) and Vincent Hugot ([email protected])" license="LGPL"><highlighting><list name="keywords"><item>and</item><item>as</item><item>eof</item><item>let</item><item>parse</item><item>rule</item><item>shortest</item></list><contexts><context name="Rules" attribute="Normal"><StringDetect String="(*" attribute="Comment" context="Comment" beginRegion="comment"/><DetectChar char="{" attribute="Normal" context="Ocaml" beginRegion="code"/><DetectChar char='"' attribute="String" context="String"/><RegExpr String="'((\\[ntbr'"\\]|\\[0-9]{3}|\\x[0-9A-Fa-f]{2})|[^'])'" attribute="Character"/><keyword String="keywords" attribute="Keyword"/><RegExpr String="`?[A-Za-z\300-\326\330-\366\370-\377_][A-Za-z\300-\326\330-\366\370-\3770-9_']*" attribute="Identifier"/><DetectChar char="}" attribute="Mismatched Brackets"/><StringDetect String="*)" attribute="Mismatched Brackets"/></context><context name="Comment" attribute="Comment"><StringDetect String="*)" attribute="Comment" context="#pop" endRegion="comment"/><StringDetect String="(*" attribute="Comment" context="Comment" beginRegion="comment"/><DetectChar char='"' attribute="String" context="String"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="String" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/><RegExpr String="(\\[ntbr'"\\]|\\[0-9]{3}|\\x[0-9A-Fa-f]{2})|\\$" attribute="Escaped Characters"/></context><context name="Ocaml" attribute="Normal"><DetectChar char="}" attribute="Normal" context="#pop" endRegion="code"/><IncludeRules context="##Objective Caml" includeAttrib="1"/></context></contexts><itemDatas><itemData name="Normal" defStyleNum="dsOthers"/><itemData name="Identifier" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsOthers" bold="1"/><itemData name="Character" defStyleNum="dsChar"/><itemData name="String" defStyleNum="dsString"/><itemData name="Escaped Characters" defStyleNum="dsChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Mismatched Brackets" defStyleNum="dsError"/></itemDatas></highlighting><general><keywords casesensitive="1"/><comments><comment name="multiLine" start="(*" end="*)" region="comment"/></comments></general></language> |