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
3.7 KiB
XML
1 line
No EOL
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Hamlet" version="6" kateversion="5.62" section="Markup" extensions="*.hamlet" author="Bastian Holst ([email protected])" license="LGPL" indenter="haskell"><highlighting><contexts><context name="Normal Text" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="<(?![0-9])[\w_:][\w.:_-]*\b" attribute="Element" context="element"/><StringDetect String="^{" attribute="Code" context="Code"/><StringDetect String="#{" attribute="Code" context="Code"/><StringDetect String="@{" attribute="Code" context="Code"/><StringDetect String="_{" attribute="Code" context="Code"/><DetectChar char="$" attribute="Logic" context="Logic" firstNonSpace="1"/></context><context name="Code" attribute="Normal Text"><DetectChar char="}" attribute="Code" context="#pop"/><IncludeRules context="##Haskell"/></context><context name="Codeline" attribute="Normal Text" lineEndContext="#pop"><IncludeRules context="##Haskell"/></context><context name="Assignment" attribute="Normal Text" lineEndContext="#pop"><StringDetect String="<-" attribute="Assignment" context="Codeline"/><IncludeRules context="##Haskell"/></context><context name="Value Code" attribute="Normal Text"><DetectChar char="}" attribute="Code" context="#pop#pop#pop"/><IncludeRules context="##Haskell"/></context><context name="Attribute" attribute="Attribute"><DetectChar char="=" attribute="Attribute" context="Value"/><DetectChar char=">" attribute="Element" context="#pop#pop"/><RegExpr String="\S" attribute="Error"/></context><context name="Logic" attribute="Normal Text" lineEndContext="#pop"><WordDetect String="if" attribute="Logic" context="Codeline"/><WordDetect String="elseif" attribute="Logic" context="Codeline"/><WordDetect String="forall" attribute="Logic" context="Assignment"/><WordDetect String="maybe" attribute="Logic" context="Assignment"/><WordDetect String="else" attribute="Logic"/><WordDetect String="nothing" attribute="Logic"/><RegExpr String="\S" attribute="Error"/></context><context name="Value" attribute="Value"><DetectChar char='"' attribute="Value" context="Value DQ"/><DetectChar char="'" attribute="Value" context="Value SQ"/><StringDetect String="@{" attribute="Code" context="Value Code"/><StringDetect String="#{" attribute="Code" context="Value Code"/><RegExpr String="[^"'>\s]+" attribute="Value" context="#pop#pop"/><RegExpr String="\S" attribute="Error"/></context><context name="Value DQ" attribute="Value"><DetectChar char='"' attribute="Value" context="#pop#pop#pop"/></context><context name="Value SQ" attribute="Value"><DetectChar char="'" attribute="Value" context="#pop#pop#pop"/></context><context name="element" attribute="Element"><StringDetect String="/>" attribute="Element" context="#pop"/><DetectChar char=">" attribute="Element" context="#pop"/><RegExpr String="^(?![0-9])[\w_:][\w.:_-]*|\s+(?![0-9])[\w_:][\w.:_-]*" attribute="Attribute" context="Attribute"/><RegExpr String="\.(?![0-9])[\w_:][\w.:_-]*" attribute="Class"/><RegExpr String="\S" attribute="Error"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Element" defStyleNum="dsKeyword"/><itemData name="Attribute" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Class" defStyleNum="dsString" spellChecking="0"/><itemData name="Value" defStyleNum="dsString" spellChecking="0"/><itemData name="Logic" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Code" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/><itemData name="Assignment" defStyleNum="dsOthers" spellChecking="0"/></itemDatas></highlighting><general><keywords casesensitive="1"/></general></language> |