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
15 KiB
XML
1 line
No EOL
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Cabal" section="Configuration" version="1" kateversion="5.62" extensions="*.cabal;cabal.config;cabal.project;cabal.project.freeze;cabal.project.local" author="Jonathan Poelen ([email protected])" license="MIT"><highlighting><list name="conditional"><item>elif</item><item>else</item><item>if</item></list><list name="function"><item>arche</item><item>flag</item><item>impl</item><item>os</item></list><list name="category"><item>benchmark</item><item>common</item><item>custom-setup</item><item>executable</item><item>flag</item><item>foreign-library</item><item>library</item><item>source-repository</item><item>test-suite</item></list><list name="constant"><item>False</item><item>True</item></list><list name="stmt"><item>asm-options</item><item>asm-sources</item><item>author</item><item>autogen-includes</item><item>autogen-modules</item><item>branch</item><item>bug-reports</item><item>build-depends</item><item>build-tool-depends</item><item>build-tools</item><item>build-type</item><item>buildable</item><item>c-sources</item><item>cabal-version</item><item>category</item><item>cc-options</item><item>cmm-options</item><item>cmm-sources</item><item>copyright</item><item>cpp-options</item><item>cxx-options</item><item>cxx-sources</item><item>data-dir</item><item>data-files</item><item>default</item><item>default-extensions</item><item>default-language</item><item>description</item><item>executable</item><item>exposed</item><item>exposed-modules</item><item>extensions</item><item>extra-bundled-libraries</item><item>extra-doc-files</item><item>extra-dynamic-library-flavours</item><item>extra-framework-dirs</item><item>extra-ghci-libraries</item><item>extra-lib-dirs</item><item>extra-lib-dirs-static</item><item>extra-libraries</item><item>extra-libraries-static</item><item>extra-library-flavours</item><item>extra-source-files</item><item>extra-tmp-files</item><item>frameworks</item><item>ghc-options</item><item>ghc-prof-options</item><item>ghc-shared-options</item><item>ghcjs-options</item><item>ghcjs-prof-options</item><item>ghcjs-shared-options</item><item>homepage</item><item>hs-source-dir</item><item>hs-source-dirs</item><item>hugs-options</item><item>import</item><item>include-dirs</item><item>includes</item><item>install-includes</item><item>js-sources</item><item>ld-options</item><item>lib-version-info</item><item>lib-version-linux</item><item>license</item><item>license-file</item><item>location</item><item>main-is</item><item>maintainer</item><item>manual</item><item>mixins</item><item>mod-def-file</item><item>module</item><item>name</item><item>nhc98-options</item><item>options</item><item>other-extensions</item><item>other-language</item><item>other-languages</item><item>other-modules</item><item>package-url</item><item>pkgconfig-depends</item><item>reexported-modules</item><item>scope</item><item>setup-depends</item><item>signatures</item><item>stability</item><item>subdir</item><item>synopsis</item><item>tag</item><item>test-module</item><item>tested-with</item><item>type</item><item>version</item><item>virtual-modules</item></list><list name="language"><item>Haskell2010</item><item>Haskell98</item></list><list name="compiler"><item>ghc</item><item>hbc</item><item>helium</item><item>hugs</item><item>jhc</item><item>lhc</item><item>nhc</item><item>yhc</item></list><list name="build-type"><item>configure</item><item>custom</item><item>simple</item></list><list name="default-extensions"><include>language_pragmas##Haskell</include></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><StringDetect String="--" attribute="Comment" context="Comment"/><WordDetect String="version" attribute="Statement" context="stmtVersion" insensitive="1"/><WordDetect String="cabal-version" attribute="Statement" context="stmtVersion" insensitive="1"/><WordDetect String="build-type" attribute="Statement" context="stmtBuildType" insensitive="1"/><WordDetect String="tested-with" attribute="Statement" context="stmtTestWith" insensitive="1"/><WordDetect String="license-file" attribute="Statement" context="stmtLicenseFile" insensitive="1"/><WordDetect String="license" attribute="Statement" context="stmtLicense" insensitive="1"/><WordDetect String="maintainer" attribute="Statement" context="stmtMaintainer" insensitive="1"/><WordDetect String="author" attribute="Statement" context="stmtAuthor" insensitive="1"/><WordDetect String="name" attribute="Statement" context="stmtName" insensitive="1"/><WordDetect String="description" attribute="Statement" context="stmtDescription" insensitive="1"/><WordDetect String="copyright" attribute="Statement" context="stmtCopyright" insensitive="1"/><WordDetect String="homepage" attribute="Statement" context="stmtHomepage" insensitive="1"/><WordDetect String="bug-reports" attribute="Statement" context="stmtBugReports" insensitive="1"/><keyword String="stmt" attribute="Statement" context="stmt"/><keyword String="category" attribute="Category" context="category"/><keyword String="conditional" attribute="Conditional" context="conditional"/><RegExpr String="[-\w]+" attribute="Other Statement" context="stmt"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces attribute="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier attribute="Comment"/></context><context name="stmtContinuation" attribute="Normal Text" fallthroughContext="#pop"><RegExpr String="^\s*[a-zA-Z]+[-0-9a-zA-Z]*\s*:|^\s*(if|else|elif|executable|library|benchmark|test-suite|source-repository|flag|foreign-library|custom-setup|common)(?![-\w])" attribute="Normal Text" context="#pop#pop" insensitive="1" lookAhead="1"/></context><context name="versionOp" attribute="Error" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><AnyChar String="=^!<>" attribute="Error"/><DetectChar char="{" attribute="Normal Text" context="#pop!versionOpList"/><RegExpr String="(?<![-+@$\w.])[0-9]+(\.[0-9]+)*" attribute="Version" context="#pop"/><RegExpr String="[0-9.]+" attribute="Error" context="#pop"/></context><context name="author" attribute="Author" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="bugReports" attribute="Bug Reports" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="copyright" attribute="Copyright" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="description" attribute="Description" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="homepage" attribute="Homepage" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="license" attribute="License" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="licenseFile" attribute="License File" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="maintainer" attribute="Maintainer" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="name" attribute="Name" lineEndContext="stmtContinuation"><StringDetect String="--" attribute="Comment" context="Comment"/></context><context name="stmt2" attribute="Normal Text" lineEndContext="stmtContinuation"><IncludeRules context="findStmt"/><RegExpr String="[-\w.]+\s*" attribute="Normal Text"/></context><context name="testWith" attribute="Normal Text" lineEndContext="stmtContinuation"><IncludeRules context="findStmt"/><keyword String="compiler" attribute="Compiler"/><RegExpr String="[-\w.]+" attribute="Error"/></context><context name="findOperator" attribute="Normal Text"><StringDetect String="!" attribute="Operator"/><StringDetect String="||" attribute="Operator"/><StringDetect String="&&" attribute="Operator"/></context><context name="findStmt" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><IncludeRules context="findOperator"/><StringDetect String="--" attribute="Comment" context="Comment"/><StringDetect String="==" attribute="Version Operator" context="versionOp"/><StringDetect String=">=" attribute="Version Operator" context="versionOp"/><StringDetect String="<=" attribute="Version Operator" context="versionOp"/><StringDetect String="^>=" attribute="Version Operator" context="versionOp"/><AnyChar String="<>" attribute="Version Operator" context="versionOp"/><AnyChar String="=^" context="versionOp" lookAhead="1"/><keyword String="constant" attribute="Constant"/><keyword String="language" attribute="Language"/></context><context name="findVersion" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="(?<![-+@$\w.])[0-9]+(\.[0-9]+)*" attribute="Version"/><RegExpr String="[0-9.]+" attribute="Error"/></context><context name="stmt" attribute="Normal Text" fallthroughContext="#pop!stmt2" lineEndContext="#pop!stmt2"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!stmt2"/></context><context name="stmtVersion" attribute="Error" fallthroughContext="#pop!version" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char=":" attribute="Symbol Separator" context="#pop!version"/></context><context name="version" attribute="Normal Text" lineEndContext="stmtContinuation"><DetectSpaces attribute="Normal Text"/><StringDetect String="--" attribute="Comment" context="Comment"/><IncludeRules context="findVersion"/></context><context name="category" attribute="Category Title" lineEndContext="#pop"><StringDetect String="--" attribute="Comment" context="#pop!Comment"/></context><context name="conditional" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><AnyChar String="()" attribute="Symbol"/><IncludeRules context="findOperator"/><StringDetect String="--" attribute="Comment" context="#pop!Comment"/><keyword String="function" attribute="Function" insensitive="0"/><keyword String="constant" attribute="Constant"/><DetectIdentifier attribute="Normal Text"/></context><context name="stmtAuthor" attribute="Author" fallthroughContext="#pop!author" lineEndContext="#pop!author"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!author"/></context><context name="stmtBugReports" attribute="Bug Reports" fallthroughContext="#pop!bugReports" lineEndContext="#pop!bugReports"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!bugReports"/></context><context name="stmtBuildType" attribute="Normal Text" fallthroughContext="stmtContinuation" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char=":" attribute="Symbol Separator"/><StringDetect String="--" attribute="Comment" context="Comment"/><keyword String="build-type" attribute="Built Type"/></context><context name="stmtCopyright" attribute="Copyright" fallthroughContext="#pop!copyright" lineEndContext="#pop!copyright"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!copyright"/></context><context name="stmtDescription" attribute="Description" fallthroughContext="#pop!description" lineEndContext="#pop!description"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!description"/></context><context name="stmtHomepage" attribute="Homepage" fallthroughContext="#pop!homepage" lineEndContext="#pop!homepage"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!homepage"/></context><context name="stmtLicense" attribute="License" fallthroughContext="#pop!license" lineEndContext="#pop!license"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!license"/></context><context name="stmtLicenseFile" attribute="License File" fallthroughContext="#pop!licenseFile" lineEndContext="#pop!licenseFile"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!licenseFile"/></context><context name="stmtMaintainer" attribute="Maintainer" fallthroughContext="#pop!maintainer" lineEndContext="#pop!maintainer"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!maintainer"/></context><context name="stmtName" attribute="Name" fallthroughContext="#pop!name" lineEndContext="#pop!name"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!name"/></context><context name="stmtTestWith" attribute="Normal Text" fallthroughContext="#pop!testWith" lineEndContext="#pop!testWith"><DetectSpaces attribute="Normal Text"/><StringDetect String=":" attribute="Symbol Separator" context="#pop!testWith"/></context><context name="versionOpList" attribute="Error" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char="," attribute="Normal Text"/><DetectChar char="}" attribute="Normal Text" context="#pop"/><StringDetect String="--" attribute="Comment" context="Comment"/><IncludeRules context="findVersion"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Category" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Category Title" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Statement" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Other Statement" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Name" defStyleNum="dsVerbatimString" spellChecking="0"/><itemData name="Author" defStyleNum="dsString" spellChecking="0"/><itemData name="Homepage" defStyleNum="dsSpecialString" spellChecking="0"/><itemData name="Description" defStyleNum="dsVerbatimString" spellChecking="0"/><itemData name="Maintainer" defStyleNum="dsString" spellChecking="0"/><itemData name="Bug Reports" defStyleNum="dsSpecialString" spellChecking="0"/><itemData name="Copyright" defStyleNum="dsString" spellChecking="0"/><itemData name="License" defStyleNum="dsString" spellChecking="0"/><itemData name="License File" defStyleNum="dsString" spellChecking="0"/><itemData name="Built Type" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Version Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Symbol Separator" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Version" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Constant" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Language" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Conditional" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Compiler" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="--"/></comments><keywords casesensitive="0" weakDeliminator="-"/></general></language> |