Damson/assets/syntax/hjson.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
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Hjson" section="Configuration" version="1" kateversion="5.62" extensions="*.hjson" mimetype="application/hjson" author="Marco Nelles ([email protected])" license="MIT"><highlighting><contexts><context name="Normal" attribute="Normal Text"><RegExpr String="^[\s]*[A-Za-z0-9_-]+(?=\s*:)" attribute="Data Type" column="0"/><RegExpr String='^[\s]*"' attribute="Data Type" context="QuotedKeyDouble" column="0"/><RegExpr String="^[\s]*'" attribute="Data Type" context="QuotedKeySingle" column="0"/><AnyChar String="{}[]" attribute="Bold"/><DetectChar char='"' attribute="String" context="DoubleQuoteString"/><StringDetect String="'''" attribute="String" context="MultiLineString"/><DetectChar char="'" attribute="String" context="SingleQuoteString"/><RegExpr String="\b-?[0-9]+(\.[0-9]+)?\b" attribute="Number"/><RegExpr String="(#|//).*$" attribute="Comment"/><StringDetect String="/*" attribute="Comment" context="MultiLineComment" beginRegion="Comment"/><RegExpr String="\b(true|false|null)\b" attribute="Keyword"/></context><context name="DoubleQuoteString" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/><RegExpr String="." attribute="String"/></context><context name="MultiLineComment" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/></context><context name="MultiLineString" attribute="String"><StringDetect String="'''" attribute="String" context="#pop"/><RegExpr String="." attribute="String"/></context><context name="QuotedKeyDouble" attribute="Data Type"><DetectChar char='"' attribute="Data Type" context="#pop"/><RegExpr String="." attribute="Data Type"/></context><context name="QuotedKeySingle" attribute="Data Type"><DetectChar char="'" attribute="Data Type" context="#pop"/><RegExpr String="." attribute="Data Type"/></context><context name="SingleQuoteString" attribute="String"><DetectChar char="'" attribute="String" context="#pop"/><RegExpr String="." attribute="String"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Data Type" defStyleNum="dsDataType"/><itemData name="Bold" defStyleNum="dsNormal" bold="1"/><itemData name="String" defStyleNum="dsString"/><itemData name="Number" defStyleNum="dsDecVal"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Keyword" defStyleNum="dsKeyword"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/"/></comments><keywords casesensitive="1"/></general></language>