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
10 KiB
XML
1 line
No EOL
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Curry" version="4" kateversion="5.62" section="Sources" extensions="*.curry" mimetype="text/x-curry" author="Björn Peemöller ([email protected])" license="LGPL" indenter="haskell"><highlighting><list name="keywords"><item>case</item><item>data</item><item>do</item><item>else</item><item>external</item><item>fcase</item><item>free</item><item>if</item><item>in</item><item>infix</item><item>infixl</item><item>infixr</item><item>let</item><item>module</item><item>of</item><item>then</item><item>type</item><item>where</item></list><list name="Prelude Func"><item>all</item><item>and</item><item>any</item><item>appendFile</item><item>best</item><item>break</item><item>browse</item><item>browseList</item><item>chr</item><item>concat</item><item>concatMap</item><item>const</item><item>curry</item><item>div</item><item>doSolve</item><item>done</item><item>drop</item><item>dropWhile</item><item>either</item><item>elem</item><item>ensureNotFree</item><item>ensureSpine</item><item>enumFrom</item><item>enumFromThen</item><item>enumFromThenTo</item><item>enumFromTo</item><item>error</item><item>failed</item><item>filter</item><item>findall</item><item>flip</item><item>foldl</item><item>foldl1</item><item>foldr</item><item>foldr1</item><item>fst</item><item>getChar</item><item>getLine</item><item>head</item><item>id</item><item>if_then_else</item><item>iterate</item><item>length</item><item>lines</item><item>lookup</item><item>map</item><item>mapIO</item><item>mapIO_</item><item>max</item><item>maybe</item><item>min</item><item>mod</item><item>negate</item><item>not</item><item>notElem</item><item>null</item><item>once</item><item>or</item><item>ord</item><item>otherwise</item><item>print</item><item>putChar</item><item>putStr</item><item>putStrLn</item><item>readFile</item><item>repeat</item><item>replicate</item><item>return</item><item>reverse</item><item>seq</item><item>sequenceIO</item><item>sequenceIO_</item><item>show</item><item>snd</item><item>solveAll</item><item>span</item><item>splitAt</item><item>success</item><item>tail</item><item>take</item><item>takeWhile</item><item>try</item><item>uncurry</item><item>unknown</item><item>unlines</item><item>unpack</item><item>until</item><item>unwords</item><item>unzip</item><item>unzip3</item><item>words</item><item>writeFile</item><item>zip</item><item>zip3</item><item>zipWith</item><item>zipWith3</item></list><list name="Prelude Type"><item>Bool</item><item>Char</item><item>Either</item><item>Float</item><item>IO</item><item>Int</item><item>Maybe</item><item>Ordering</item><item>String</item><item>Success</item></list><list name="Prelude Cons"><item>EQ</item><item>False</item><item>GT</item><item>Just</item><item>LT</item><item>Left</item><item>Nothing</item><item>Right</item><item>True</item></list><contexts><context name="Normal" attribute="Normal"><StringDetect String="{-#" attribute="Pragma" context="Pragma" beginRegion="Pragma"/><StringDetect String="{-" attribute="Comment" context="Multiline Comment" beginRegion="Multiline Comment"/><StringDetect String="---" attribute="Currydoc" context="Currydoc"/><StringDetect String="--" attribute="Comment" context="Comment"/><keyword String="keywords" attribute="Keyword"/><keyword String="Prelude Func" attribute="Prelude Function"/><keyword String="Prelude Type" attribute="Prelude Type"/><keyword String="Prelude Cons" attribute="Prelude Constructor"/><RegExpr String="import\s+(?:qualified)?" attribute="Keyword" context="Import"/><Float attribute="Float"/><RegExpr String="0[oO][0-7]+" attribute="Octal"/><HlCHex attribute="Hex"/><Int attribute="Decimal"/><DetectChar char="'" attribute="Char" context="Char"/><DetectChar char='"' attribute="String" context="String"/><RegExpr String="(?:::|:=|:>|\->|<\-|\.\.)" attribute="Special Symbol"/><RegExpr String="\s*(?:[a-z][a-zA-Z0-9_']*|\([~!@#\$%\^&\*\+\-=<>\?\./\|\\:]+\))\s*(?:,\s*(?:[a-z][a-zA-Z0-9_']*|\([~!@#\$%\^&\*\+\-=<>\?\./\|\\:]+\)))*\s*(?=::[^~!@#\$%\^&\*\+\-=<>\?\./\|\\:])" attribute="Signature"/><RegExpr String="(?:[A-Z][a-zA-Z0-9_']*\.)*[a-z][a-zA-Z0-9_']*" attribute="Function"/><RegExpr String="(?:[A-Z][a-zA-Z0-9_']*\.)*[~!@#\$%\^&\*\+\-=<>\?\./\|\\:]+" attribute="Operator"/><RegExpr String="(?:[A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" attribute="Type, Constructor"/><DetectChar char="`" attribute="Infix Application" context="Infix"/><DetectChar char="(" attribute="Braces" beginRegion="nested"/><DetectChar char=")" attribute="Braces" endRegion="nested"/><DetectChar char="[" attribute="Braces" beginRegion="list"/><DetectChar char="]" attribute="Braces" endRegion="list"/><DetectChar char="{" attribute="Braces" beginRegion="curly"/><DetectChar char="}" attribute="Braces" endRegion="curly"/></context><context name="CharEnd" attribute="Char" lineEndContext="#pop!CharSyntaxError"><DetectChar char="'" attribute="Char" context="#pop#pop"/><RegExpr String="." attribute="Syntax Error"/></context><context name="CharSyntaxError" attribute="Syntax Error"><DetectChar char="'" attribute="Syntax Error" context="#pop#pop"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="Currydoc" attribute="Currydoc" lineEndContext="#pop"/><context name="Multiline Comment" attribute="Comment"><StringDetect String="-}" attribute="Comment" context="#pop" endRegion="Multiline Comment"/><IncludeRules context="##Comments"/></context><context name="Pragma" attribute="Pragma"><StringDetect String="#-}" attribute="Pragma" context="#pop" endRegion="Pragma"/></context><context name="String" attribute="String" lineEndContext="StringSyntaxError"><DetectChar char='"' attribute="String" context="#pop"/><DetectChar char="\" attribute="String Escape" context="StringEscape"/><RegExpr String='[^"\\]*' attribute="String"/></context><context name="StringGap" attribute="String"><DetectSpaces attribute="String Escape"/><DetectChar char="\" attribute="String Escape" context="#pop#pop#pop!String"/><DetectChar char='"' attribute="Syntax Error" context="#pop#pop#pop"/><RegExpr String="." attribute="Syntax Error"/></context><context name="Char" attribute="Char" lineEndContext="CharSyntaxError"><DetectChar char="'" attribute="Syntax Error" context="#pop"/><DetectChar char="\" attribute="Char" context="CharEscape"/><RegExpr String="[^'\\]" attribute="Char" context="CharEnd"/></context><context name="CharEscape" attribute="Char" lineEndContext="#pop!CharSyntaxError"><AnyChar String="abfnrtv\"'" attribute="Char" context="#pop!CharEnd"/><RegExpr String="o[0-7]+|[0-9]+|x[0-9a-fA-F]+|\^[A-Z@\[\\\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL" attribute="Char" context="#pop!CharEnd"/><RegExpr String="." attribute="Syntax Error" context="#pop!CharEnd"/></context><context name="Import" attribute="Normal" lineEndContext="#pop"><StringDetect String="{-#" attribute="Pragma" context="Pragma" beginRegion="Pragma"/><StringDetect String="{-" attribute="Comment" context="Multiline Comment" beginRegion="Multiline Comment"/><StringDetect String="---" attribute="Currydoc" context="Currydoc"/><StringDetect String="--" attribute="Comment" context="Comment"/><RegExpr String="(?:[A-Z][a-zA-Z0-9_']*\.)*[A-Z][a-zA-Z0-9_']*" attribute="Type, Constructor"/><StringDetect String="as" attribute="Keyword"/><StringDetect String="hiding" attribute="Keyword"/><DetectChar char="(" attribute="Braces" context="#pop" beginRegion="nested"/><RegExpr String="\S+" attribute="Syntax Error"/></context><context name="Infix" attribute="Infix Application"><DetectChar char="`" attribute="Infix Application" context="#pop"/></context><context name="StringEscape" attribute="String" lineEndContext="StringGap"><AnyChar String="abfnrtv\"'&" attribute="String Escape" context="#pop"/><RegExpr String="o[0-7]+|[0-9]+|x[0-9a-fA-F]+|\^[A-Z@\[\\\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL" attribute="String Escape" context="#pop"/><DetectSpaces attribute="String Escape" context="StringGap"/><RegExpr String="." attribute="Syntax Error" context="#pop"/></context><context name="StringSyntaxError" attribute="Syntax Error"><DetectChar char='"' attribute="Syntax Error" context="#pop#pop"/></context></contexts><itemDatas><itemData name="Normal" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Pragma" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Currydoc" defStyleNum="dsDocumentation"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Prelude Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Prelude Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Prelude Constructor" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Octal" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Hex" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Char" defStyleNum="dsChar" spellChecking="0"/><itemData name="String Escape" defStyleNum="dsChar" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Braces" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Signature" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Function" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Operator" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Type, Constructor" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Special Symbol" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Infix Application" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Syntax Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><folding indentationsensitive="1"/><comments><comment name="singleLine" start="--" position="afterwhitespace"/><comment name="multiLine" start="{-" end="-}" region="Multiline Comment"/></comments><keywords casesensitive="1"/></general></language> |