Damson/assets/syntax/git-ignore.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
6.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Git Ignore" version="4" kateversion="5.62" section="Configuration" extensions=".gitignore*;" mimetype="text/x-git-ignore" license="LGPL"><highlighting><contexts><context name="ini" attribute="Normal Text" fallthroughContext="Exclude"><DetectChar char="#" attribute="Comment" context="Comment"/><DetectChar char="!" attribute="Include - Prefix" context="Include"/></context><context name="ExcludeGlobRangeList" attribute="Exclude - Glob Inner Range" fallthroughContext="ExcludeGlobRangeListSpecial" lineEndContext="#pop#pop"><RegExpr String="([^[\\\]]+|\[(?!(:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit):|\.[a-z-]\.|=[a-z]=)\]))++" attribute="Exclude - Glob Inner Range" context="ExcludeGlobRangeListSpecial"/></context><context name="ExcludeGlobRangeListSpecial" attribute="Exclude - Glob Inner Range" lineEndContext="#pop#pop#pop"><DetectChar char="]" attribute="Exclude - Glob Range" context="#pop#pop#pop"/><DetectChar char="\" attribute="Exclude - Escape" context="ExcludeGlobRangeEscape"/><DetectChar char="[" attribute="Exclude - Character Class" context="ExcludeGlobRangeCharClass"/></context><context name="ExcludeGlobRangeListStart" attribute="Exclude - Glob Range" fallthroughContext="#pop!ExcludeGlobRangeList" lineEndContext="#pop#pop"><DetectChar char="]" attribute="Exclude - Glob Inner Range" context="#pop!ExcludeGlobRangeList"/></context><context name="IncludeGlobRangeList" attribute="Include - Glob Inner Range" fallthroughContext="IncludeGlobRangeListSpecial" lineEndContext="#pop#pop"><RegExpr String="([^[\\\]]+|\[(?!(:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit):|\.[a-z-]\.|=[a-z]=)\]))++" attribute="Include - Glob Inner Range" context="IncludeGlobRangeListSpecial"/></context><context name="IncludeGlobRangeListSpecial" attribute="Include - Glob Inner Range" lineEndContext="#pop#pop#pop"><DetectChar char="]" attribute="Include - Glob Range" context="#pop#pop#pop"/><DetectChar char="\" attribute="Include - Escape" context="IncludeGlobRangeEscape"/><DetectChar char="[" attribute="Include - Character Class" context="IncludeGlobRangeCharClass"/></context><context name="IncludeGlobRangeListStart" attribute="Include - Glob Range" fallthroughContext="#pop!IncludeGlobRangeList" lineEndContext="#pop#pop"><DetectChar char="]" attribute="Include - Glob Inner Range" context="#pop!IncludeGlobRangeList"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"/><context name="Exclude" attribute="Exclude" lineEndContext="#pop"><AnyChar String="?*" attribute="Exclude - Glob"/><DetectChar char="/" attribute="Exclude - Directory Separator"/><DetectChar char="[" attribute="Exclude - Glob Range" context="ExcludeGlobRange"/><DetectChar char="\" attribute="Exclude - Escape" context="ExcludeEscaped"/><RegExpr String="[^[?*\\/]+" attribute="Exclude"/></context><context name="ExcludeEscaped" attribute="Exclude" lineEndContext="#pop#pop"><RegExpr String="." attribute="Exclude" context="#pop"/></context><context name="ExcludeGlobRange" attribute="Exclude - Glob Range" fallthroughContext="ExcludeGlobRangeListStart" lineEndContext="#pop#pop"><AnyChar String="^!" attribute="Exclude - Glob Range" context="ExcludeGlobRangeListStart"/></context><context name="ExcludeGlobRangeCharClass" attribute="Exclude - Character Class" lineEndContext="#pop#pop#pop#pop"><DetectChar char="]" attribute="Exclude - Character Class" context="#pop#pop"/><AnyChar String=":.=-" attribute="Exclude - Character Class"/><DetectIdentifier attribute="Exclude - Character Class"/></context><context name="ExcludeGlobRangeEscape" attribute="Exclude - Glob Inner Range" lineEndContext="#pop#pop#pop#pop"><RegExpr String="." attribute="Exclude - Glob Inner Range" context="#pop#pop"/></context><context name="Include" attribute="Include" lineEndContext="#pop"><AnyChar String="?*" attribute="Include - Glob"/><DetectChar char="/" attribute="Include - Directory Separator"/><DetectChar char="[" attribute="Include - Glob Range" context="IncludeGlobRange"/><DetectChar char="\" attribute="Include - Escape" context="IncludeEscaped"/><RegExpr String="[^[?*\\/]+" attribute="Include"/></context><context name="IncludeEscaped" attribute="Include" lineEndContext="#pop#pop"><RegExpr String="." attribute="Include" context="#pop"/></context><context name="IncludeGlobRange" attribute="Include - Glob Range" fallthroughContext="IncludeGlobRangeListStart" lineEndContext="#pop#pop"><AnyChar String="^!" attribute="Include - Glob Range" context="IncludeGlobRangeListStart"/></context><context name="IncludeGlobRangeCharClass" attribute="Include - Character Class" lineEndContext="#pop#pop#pop#pop"><DetectChar char="]" attribute="Include - Character Class" context="#pop#pop"/><AnyChar String=":.=-" attribute="Include - Character Class"/><DetectIdentifier attribute="Include - Character Class"/></context><context name="IncludeGlobRangeEscape" attribute="Include - Glob Inner Range" lineEndContext="#pop#pop#pop#pop"><RegExpr String="." attribute="Include - Glob Inner Range" context="#pop#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Exclude" defStyleNum="dsString" spellChecking="0"/><itemData name="Exclude - Directory Separator" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Exclude - Escape" defStyleNum="dsString" spellChecking="0"/><itemData name="Exclude - Glob" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Exclude - Glob Range" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Exclude - Glob Inner Range" defStyleNum="dsString" spellChecking="0"/><itemData name="Exclude - Character Class" defStyleNum="dsString" spellChecking="0"/><itemData name="Include" defStyleNum="dsChar" spellChecking="0"/><itemData name="Include - Prefix" defStyleNum="dsChar" spellChecking="0"/><itemData name="Include - Directory Separator" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Include - Escape" defStyleNum="dsChar" spellChecking="0"/><itemData name="Include - Glob" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Include - Glob Range" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Include - Glob Inner Range" defStyleNum="dsChar" spellChecking="0"/><itemData name="Include - Character Class" defStyleNum="dsChar" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments><keywords casesensitive="0"/></general></language>