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]>
1 line
No EOL
3.2 KiB
XML
1 line
No EOL
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Nagios" section="Configuration" extensions="*.cfg" version="5" kateversion="5.62" author="Gastón Martini" license="GPL"><highlighting><list name="Objects"><item>command</item><item>contact</item><item>contactgroup</item><item>host</item><item>hostdependency</item><item>hostescalation</item><item>hostextinfo</item><item>hostgroup</item><item>service</item><item>servicedependency</item><item>serviceescalation</item><item>serviceextinfo</item><item>servicegroup</item><item>timeperiod</item></list><contexts><context name="Nagios" attribute="Normal Text"><DetectSpaces/><DetectChar char="#" attribute="Comment" context="Comment" firstNonSpace="1"/><DetectChar char="$" context="Macro Definition" firstNonSpace="1" lookAhead="1"/><StringDetect String="define" attribute="Definition" context="Definition" firstNonSpace="1"/><IncludeRules context="Variable" includeAttrib="1"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Value" attribute="Value" lineEndContext="#pop"><RangeDetect char1="$" char="$" attribute="Macro"/><Float attribute="Float"/><Int attribute="Int"/><DetectChar char=";" attribute="Comment" context="Comment"/></context><context name="Definition" attribute="Definition"><DetectSpaces/><keyword String="Objects" attribute="Object"/><DetectChar char="{" attribute="Definition Block" context="Object Directives" beginRegion="Object Definition"/><RegExpr String="[^{]+" attribute="Invalid Text"/></context><context name="Macro Definition" attribute="Macro Definition" lineEndContext="#pop"><RangeDetect char1="$" char="$" firstNonSpace="1"/><DetectChar char="=" attribute="Symbol" context="Value"/></context><context name="Object Directives" attribute="Object Directive"><DetectSpaces/><DetectChar char=";" attribute="Comment" context="Comment" firstNonSpace="1"/><RegExpr String="[A-Za-z0-9_]+\s*" attribute="Object Directive" context="Value" firstNonSpace="1"/><DetectChar char="}" attribute="Definition Block" context="Nagios" endRegion="Object Definition"/></context><context name="Variable" attribute="Variable" lineEndContext="#pop"><RegExpr String="[A-Za-z0-9_]+\s*" firstNonSpace="1"/><DetectChar char="=" attribute="Symbol" context="Value"/></context></contexts><itemDatas><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Variable" defStyleNum="dsNormal"/><itemData name="Object" defStyleNum="dsDataType"/><itemData name="Object Directive" defStyleNum="dsNormal"/><itemData name="Macro" defStyleNum="dsFunction"/><itemData name="Macro Definition" defStyleNum="dsFunction"/><itemData name="Value" defStyleNum="dsString"/><itemData name="Int" defStyleNum="dsDecVal"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Symbol" defStyleNum="dsOthers"/><itemData name="Definition" defStyleNum="dsKeyword"/><itemData name="Definition Block" defStyleNum="dsRegionMarker"/><itemData name="Invalid Text" defStyleNum="dsError"/></itemDatas></highlighting><general><folding/><comments><comment name="singleLine" start="#"/></comments><keywords casesensitive="1"/></general></language> |