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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Dockerfile" section="Other" version="11" kateversion="5.79" extensions="Dockerfile;Containerfile" author="James Turnbull ([email protected])" license="MIT"><highlighting><list name="keywords-trivial"><item>AS</item><item>EXPOSE</item><item>MAINTAINER</item><item>ONBUILD</item><item>SHELL</item><item>STOPSIGNAL</item><item>USER</item><item>VOLUME</item><item>WORKDIR</item></list><list name="keywords-options"><item>ADD</item><item>COPY</item><item>FROM</item><item>HEALTHCHECK</item></list><list name="keywords-key-value"><item>ARG</item><item>ENV</item><item>LABEL</item></list><list name="keywords-shell-form"><item>CMD</item><item>ENTRYPOINT</item></list><list name="keywords-shell-form-with-options"><item>RUN</item></list><contexts><context name="normal" attribute="Normal Text"><DetectSpaces/><DetectChar char="#" attribute="Comment" context="Comment"/><keyword String="keywords-trivial" attribute="Keyword"/><keyword String="keywords-options" attribute="Keyword" context="Maybe Option"/><keyword String="keywords-key-value" attribute="Keyword"/><keyword String="keywords-shell-form" attribute="Keyword" context="Maybe Shell Form"/><keyword String="keywords-shell-form-with-options" attribute="Keyword" context="Maybe Option for Shell Form"/><DetectIdentifier/><DetectChar char='"' attribute="String" context='string"'/><DetectChar char="'" attribute="String" context="string'"/><LineContinue attribute="Operator"/></context><context name="KwOption" attribute="Option" fallthroughContext="#pop" lineEndContext="#pop#pop"><RegExpr String="[a-z\-]+(=[^\s]+)?" attribute="Option" context="#pop"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><RegExpr String="(syntax|escape)=[^\s]+" attribute="Directive"/><LineContinue attribute="Comment"/><IncludeRules context="##Comments"/></context><context name="Maybe Option" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces/><StringDetect String="--" attribute="Option" context="KwOption"/><LineContinue attribute="Normal Text"/></context><context name="Maybe Option for Shell Form" attribute="Normal Text" fallthroughContext="BashOneLine##Bash" lineEndContext="#pop"><DetectSpaces/><DetectChar char="[" attribute="Normal Text" context="#pop" lookAhead="1"/><StringDetect String="--" attribute="Option" context="KwOption"/><LineContinue attribute="Operator"/></context><context name="Maybe Shell Form" attribute="Normal Text" fallthroughContext="BashOneLine##Bash" lineEndContext="#pop"><DetectSpaces/><DetectChar char="[" attribute="Normal Text" context="#pop" lookAhead="1"/><LineContinue attribute="Operator"/></context><context name='string"' attribute="String" lineEndContext="#pop"><LineContinue attribute="Operator"/><DetectChar char='"' attribute="String" context="#pop"/></context><context name="string'" attribute="String" lineEndContext="#pop"><LineContinue attribute="String"/><DetectChar char="'" attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Directive" defStyleNum="dsCommentVar"/><itemData name="Operator" defStyleNum="dsOperator"/><itemData name="Option" defStyleNum="dsOperator"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="String" defStyleNum="dsString" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments></general></language>