Damson/assets/syntax/pug.xml
astar76 11c1a7808b Build the syntax definitions into the app
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]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
5.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Pug" version="8" kateversion="5.62" section="Markup" extensions="*.pug;*.jade" mimetype="" priority="10" author="Guo Yunhe ([email protected])" license="LGPL"><highlighting><list name="controlflow"><item>case</item><item>default</item><item>each</item><item>else</item><item>if</item><item>unless</item><item>when</item><item>while</item></list><contexts><context name="Start" attribute="Normal Text"><RegExpr String="^(\s*)//" attribute="Comment" context="BlockComment" column="0"/><StringDetect String="//" attribute="Comment" context="Comment"/><StringDetect String="doctype" attribute="Doctype" insensitive="1"/><RegExpr String="\belse\s+if\b" attribute="ControlFlow" context="JavaScript" firstNonSpace="1"/><keyword String="controlflow" attribute="ControlFlow" context="JavaScript" firstNonSpace="1"/><DetectIdentifier attribute="Normal Text" context="Element" firstNonSpace="1" lookAhead="1"/><AnyChar String="#." attribute="Normal Text" context="Element" firstNonSpace="1" lookAhead="1"/><DetectChar char="-" attribute="Normal Text" context="JavaScript" firstNonSpace="1"/><DetectChar char="|" attribute="Normal Text" firstNonSpace="1"/></context><context name="JavaScript" attribute="Normal Text" lineEndContext="#pop"><IncludeRules context="Normal##JavaScript" includeAttrib="1"/><AnyChar String=",)}:" attribute="Normal Text" context="#pop" lookAhead="1"/></context><context name="Element" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="[A-Za-z][A-Za-z0-9_-]*" attribute="Element"/><RegExpr String="#[A-Za-z][A-Za-z0-9_-]*" attribute="ID"/><RegExpr String="\.[A-Za-z][A-Za-z0-9_-]*" attribute="Class"/><DetectChar char="(" attribute="Normal Text" context="Attributes"/><StringDetect String="&amp;attributes(" attribute="Normal Text" context="AttributeObject"/><RegExpr String=":\s+" attribute="Normal Text" context="Element"/><RegExpr String="=\s+" attribute="Normal Text" context="JavaScript"/><DetectChar char=" " attribute="Normal Text" context="Text"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Attribute" attribute="Attribute" lineEndContext="#pop"><AnyChar String=",)" attribute="Normal Text" context="#pop" lookAhead="1"/><RegExpr String="\s+([A-Za-z][A-Za-z0-9_-]*|\([A-Za-z][A-Za-z0-9_-]*\))(=|\s|\))" attribute="Attribute" context="#pop" lookAhead="1"/><DetectChar char="=" attribute="Attribute" context="Value"/></context><context name="AttributeObject" attribute="Normal Text"><DetectChar char=")" attribute="Normal Text" context="#pop"/><IncludeRules context="Normal##JavaScript" includeAttrib="1"/></context><context name="Attributes" attribute="Normal Text"><RegExpr String="([A-Za-z][A-Za-z0-9_-]*|\([A-Za-z][A-Za-z0-9_-]*\))" attribute="Attribute" context="Attribute"/><DetectChar char=")" attribute="Normal Text" context="#pop"/></context><context name="BlockComment" attribute="Comment"><RegExpr String="^%1\s" attribute="Comment" column="0" dynamic="1"/><RegExpr String="^\s*$" attribute="Comment" column="0"/><RegExpr String="." attribute="Comment" context="#pop" column="0" lookAhead="1"/><IncludeRules context="Comment"/></context><context name="FindEntities" attribute="Normal Text"><RegExpr String="&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z][A-Za-z0-9_-]*);" attribute="Entity"/><AnyChar String="&amp;&lt;" attribute="Error"/></context><context name="FindInterpolation" attribute="Normal Text"><StringDetect String="#{" attribute="Interpolation" context="JavaScript"/><DetectChar char="}" attribute="Interpolation"/></context><context name="Text" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="FindEntities" includeAttrib="1"/><IncludeRules context="FindInterpolation" includeAttrib="1"/></context><context name="Value" attribute="Normal Text" lineEndContext="#pop"><AnyChar String=",)" attribute="Normal Text" context="#pop" lookAhead="1"/><RegExpr String="\s+([A-Za-z][A-Za-z0-9_-]*|\([A-Za-z][A-Za-z0-9_-]*\))(=|\s|\))" attribute="Attribute" context="#pop" lookAhead="1"/><IncludeRules context="Normal##JavaScript" includeAttrib="1"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="ControlFlow" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="0"/><itemData name="Element" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="ID" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Class" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Attribute" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="Entity" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Interpolation" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><keywords casesensitive="1" weakDeliminator="-"/><comments><comment name="singleLine" start="//" position="afterwhitespace"/></comments><folding indentationsensitive="1"/><emptyLines><emptyLine regexpr="\s+"/><emptyLine regexpr="\s*//.*"/></emptyLines></general></language>