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="Elm" version="8" kateversion="5.62" section="Sources" extensions="*.elm" author="Bonghyun Kim ([email protected])" license="MIT" style="elm"><highlighting><list name="declarations"><item>alias</item><item>port</item><item>type</item></list><list name="controlFlows"><item>case</item><item>else</item><item>if</item><item>of</item><item>then</item></list><list name="letExpressions"><item>in</item><item>let</item></list><list name="imports"><item>as</item><item>exposing</item><item>import</item><item>module</item></list><list name="infixes"><item>infix</item><item>left</item><item>non</item><item>right</item></list><list name="effects"><item>command</item><item>effect</item><item>subscription</item><item>where</item></list><contexts><context name="code" attribute="Normal"><StringDetect String="{-" attribute="Comment" context="comments" beginRegion="BlockComment"/><StringDetect String="--" attribute="Comment" context="comment"/><keyword String="declarations" attribute="Keyword"/><keyword String="letExpressions" attribute="Keyword"/><keyword String="effects" attribute="Keyword"/><keyword String="imports" attribute="Keyword"/><keyword String="infixes" attribute="Keyword"/><keyword String="controlFlows" attribute="ControlFlowKeyword"/><WordDetect String="module" attribute="Import" context="module"/><WordDetect String="port" attribute="Port" context="port"/><WordDetect String="import" attribute="Import" context="import"/><RegExpr String="(\b[a-z]\w*|\b_\b)" attribute="Name"/><RegExpr String="->|::|\/\/|\.\.|&&|\|\||\+\+|\|>|<\||>>|<<|==|\/=|<=|>=|[+-\/*%=><^\|!@#$&~?]" attribute="Operator"/><RegExpr String="\b[A-Z][\w]*" attribute="Type"/><Int attribute="Decimal"/><RegExpr String="0x[\da-f]+" attribute="Hex" insensitive="1"/><RegExpr String="\d+\.\d+(e[+-]?\d+)?" attribute="Float" insensitive="1"/><RegExpr String="'(.|\\'|\\n|\\r|\\t|\\"|\\\\|\\u\{(10|0?[0-9])[0-9a-fA-F]{4}\})'" attribute="Char"/><StringDetect String='"""' attribute="String" context="multilineString"/><DetectChar char='"' attribute="String" context="string"/></context><context name="moduleParentheses" attribute="Normal"><DetectChar char="(" attribute="Normal" context="moduleParentheses"/><RegExpr String="\b[a-z][\w]*" attribute="Name"/><RegExpr String="\b[A-Z][\w]*" attribute="Type"/><DetectChar char=")" attribute="Normal" context="#pop"/></context><context name="comments" attribute="Comment"><StringDetect String="{-" attribute="Comment" context="comments" beginRegion="BlockComment"/><StringDetect String="-}" attribute="Comment" context="#pop" endRegion="BlockComment"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="module" attribute="Normal"><DetectChar char="(" attribute="Normal" context="moduleParentheses"/><keyword String="imports" attribute="Keyword"/><RegExpr String="\b[a-z][\w]*" attribute="Name"/><RegExpr String="\b[A-Z][\w]*" attribute="Type"/><DetectChar char=")" attribute="Normal" context="#pop"/></context><context name="comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="import" attribute="Normal"><DetectChar char="(" attribute="Normal" context="moduleParentheses"/><keyword String="imports" attribute="Keyword"/><RegExpr String="\b[a-z][\w]*" attribute="Name"/><RegExpr String="\b[A-Z][\w]*" attribute="Type"/><DetectChar char=")" attribute="Normal" context="#pop"/></context><context name="multilineString" attribute="String"><DetectSpaces attribute="String"/><RegExpr String="\.*" attribute="String"/><StringDetect String='"""' attribute="String" context="#pop"/></context><context name="port" attribute="Normal"><WordDetect String="imports" attribute="Import" context="module"/></context><context name="string" attribute="String"><RegExpr 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="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="ControlFlowKeyword" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Name" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Port" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Import" defStyleNum="dsImport" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Hex" defStyleNum="dsBaseN" 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="BlockComment"/></comments><keywords casesensitive="1"/></general></language> |