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.7 KiB
XML
1 line
No EOL
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="DotEnv" section="Configuration" version="1" kateversion="5.79" extensions=".env;.env.*" license="MIT"><highlighting><contexts><context name="DotEnv" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><DetectChar char="#" attribute="Comment" context="Comment"/><RegExpr String="export(?=\s+[A-Za-z_][A-Za-z0-9_.-]*\s*=)" attribute="Keyword" context="Export" firstNonSpace="1"/><RegExpr String="[A-Za-z_][A-Za-z0-9_.-]*(?=\s*=)" attribute="Key" context="Key" firstNonSpace="1"/><RegExpr String="\S.*$" attribute="Error"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="Interpolation" attribute="Value"><RegExpr String="\$(?:[A-Za-z_][A-Za-z0-9_]*|\{[A-Za-z_][A-Za-z0-9_]*\})" attribute="Variable Expansion"/></context><context name="Key" attribute="Error" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char="=" attribute="Assignment" context="#pop!Value"/></context><context name="Double Quoted Value" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/><RegExpr String="\\(?:[nrtfb"'\\]|u[0-9A-Fa-f]{4})" attribute="Special Character"/><IncludeRules context="Interpolation"/></context><context name="Export" attribute="Error" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><RegExpr String="[A-Za-z_][A-Za-z0-9_.-]*(?=\s*=)" attribute="Key" context="#pop!Key"/></context><context name="Single Quoted Value" attribute="String" lineEndContext="#pop"><DetectChar char="'" attribute="String" context="#pop"/></context><context name="Value" attribute="Value" lineEndContext="#pop"><DetectChar char="#" attribute="Comment" context="#pop!Comment"/><DetectChar char='"' attribute="String" context="Double Quoted Value"/><DetectChar char="'" attribute="String" context="Single Quoted Value"/><IncludeRules context="Interpolation"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Key" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Assignment" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Value" defStyleNum="dsString" spellChecking="0"/><itemData name="String" defStyleNum="dsString" spellChecking="0"/><itemData name="Variable Expansion" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Special Character" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments></general></language> |