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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Debian Control" version="4" kateversion="5.62" section="Other" extensions="control" mimetype=""><highlighting><contexts><context name="INIT" attribute="Normal Text"><StringDetect String="Depends:" attribute="Keyword" context="DependencyField"/><StringDetect String="Recommends:" attribute="Keyword" context="DependencyField"/><StringDetect String="Suggests:" attribute="Keyword" context="DependencyField"/><StringDetect String="Conflicts:" attribute="Keyword" context="DependencyField"/><StringDetect String="Provides:" attribute="Keyword" context="DependencyField"/><StringDetect String="Replaces:" attribute="Keyword" context="DependencyField"/><StringDetect String="Enhances:" attribute="Keyword" context="DependencyField"/><StringDetect String="Pre-Depends:" attribute="Keyword" context="DependencyField"/><StringDetect String="Build-Depends:" attribute="Keyword" context="DependencyField"/><StringDetect String="Build-Depends-Indep:" attribute="Keyword" context="DependencyField"/><StringDetect String="Build-Conflicts:" attribute="Keyword" context="DependencyField"/><StringDetect String="Build-Conflicts-Indep:" attribute="Keyword" context="DependencyField"/><StringDetect String="Breaks:" attribute="Keyword" context="DependencyField"/><RegExpr String="^[^ ]*:" attribute="Keyword" context="Field" column="0" minimal="1"/><DetectChar char=" " attribute="Value" context="Field" column="0"/></context><context name="DependencyField" attribute="Value" lineEndContext="#pop"><RegExpr String="&lt;.*@.*>" attribute="Email" minimal="1"/><StringDetect String="${" attribute="Keyword" context="Variable"/><AnyChar String=",|" attribute="Keyword"/><AnyChar String="([" attribute="Keyword" context="Constrain"/></context><context name="Variable" attribute="Variable" lineEndContext="#pop"><DetectChar char="}" attribute="Keyword" context="#pop"/></context><context name="Field" attribute="Value" lineEndContext="#pop"><RegExpr String="&lt;.*@.*>" attribute="Email" minimal="1"/><StringDetect String="${" attribute="Keyword" context="Variable"/></context><context name="Constrain" attribute="Version"><StringDetect String="${" attribute="Keyword" context="Variable"/><AnyChar String="!&lt;=>" attribute="Keyword"/><AnyChar String=")]" attribute="Keyword" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Version" defStyleNum="dsDecVal"/><itemData name="Value" defStyleNum="dsDataType"/><itemData name="Variable" defStyleNum="dsVariable"/><itemData name="Email" defStyleNum="dsOthers"/></itemDatas></highlighting><general><keywords casesensitive="1"/></general></language>