Damson/assets/syntax/ini.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="INI Files" section="Configuration" extensions="*.ini;*.INI;*.cfg;*.pls;*.kcfgc;.gitattributes*;.gitconfig*;.gitmodules*;.editorconfig*" mimetype="" version="14" kateversion="5.62" author="Jan Janssen ([email protected])" license="LGPL" priority="1"><highlighting><list name="keywords"><item>Default</item><item>Defaults</item><item>E_ALL</item><item>E_COMPILE_ERROR</item><item>E_COMPILE_WARNING</item><item>E_CORE_ERROR</item><item>E_CORE_WARNING</item><item>E_ERROR</item><item>E_NOTICE</item><item>E_PARSE</item><item>E_STRICT</item><item>E_USER_ERROR</item><item>E_USER_NOTICE</item><item>E_USER_WARNING</item><item>E_WARNING</item><item>False</item><item>Localhost</item><item>No</item><item>Normal</item><item>Null</item><item>Off</item><item>On</item><item>True</item><item>Yes</item></list><contexts><context name="ini" attribute="Normal Text"><RangeDetect char1="]" char="[" attribute="Section" beginRegion="Section" endRegion="Section"/><DetectChar char="=" attribute="Assignment" context="Value"/><AnyChar String=";#" attribute="Comment" context="Comment" firstNonSpace="1"/><DetectIdentifier/><DetectSpaces/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="NormalValue" attribute="Value" lineEndContext="#pop"/><context name="SpecialValue" attribute="Value" lineEndContext="#pop"><Float attribute="Float"/><Int attribute="Int"/><keyword String="keywords" attribute="Keyword"/><DetectChar char="-" attribute="Int"/><DetectSpaces/></context><context name="Value" attribute="Value" fallthroughContext="#pop!NormalValue" lineEndContext="#pop"><RegExpr String="\s*((-?(\d+(\.\d*)?|\.d+)(e\d+)?|On|Off|Defaults?|Localhost|Null|True|False|Yes|No|Normal)\s*$|~?(E_ALL|E_ERROR|E_WARNING|E_PARSE|E_NOTICE|E_STRICT|E_CORE_ERROR|E_CORE_WARNING|E_COMPILE_ERROR|E_COMPILE_WARNING|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE)\b)" context="#pop!SpecialValue" insensitive="1" lookAhead="1"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Section" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Assignment" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Value" defStyleNum="dsString" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Int" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start=";"/></comments><keywords casesensitive="0"/></general></language>