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
11 KiB
XML
1 line
No EOL
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="XML" version="27" kateversion="5.62" section="Markup" extensions="*.page;*.docbook;*.xml;*ui.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel;*.dae;*.sch;*.brd;*.fb2" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/x-xbel;application/xml;application/scxml+xml;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.presentation-flat-xml;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/gpx+xml;application/x-fictionbook+xml" indenter="xml" author="Wilbert Berendsen ([email protected])" license="LGPL"><highlighting><contexts><context name="Start" attribute="Normal Text"><IncludeRules context="FindText"/><IncludeRules context="FindElement"/></context><context name="PI" attribute="Other Text"><StringDetect String="?>" attribute="PI Symbols" context="#pop" endRegion="pi"/></context><context name="Attribute" attribute="Other Text"><DetectChar char="=" attribute="Attribute Separator" context="#pop!Value"/><DetectSpaces attribute="Other Text"/><DetectChar char='"' attribute="Error" context="Value DQ"/><DetectChar char="'" attribute="Error" context="Value SQ"/><IncludeRules context="FindAttributeCommonError"/></context><context name="Doctype Markupdecl" attribute="Other Text"><DetectChar char=">" attribute="Doctype Symbols" context="#pop"/><DetectChar char='"' attribute="Value" context="Doctype Markupdecl DQ"/><DetectChar char="'" attribute="Value" context="Doctype Markupdecl SQ"/></context><context name="Element" attribute="Other Text" fallthroughContext="ElementCommonError"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="element"/><DetectChar char=">" attribute="Element Symbols" context="#pop"/><DetectSpaces attribute="Other Text"/><RegExpr String="(?:^|(?<=\s))[[:alpha:]_:][\w.:_-]*" attribute="Attribute" context="Attribute"/><DetectChar char="/" attribute="Error" context="#pop" endRegion="element"/><DetectChar char="=" attribute="Error" context="Value"/><RegExpr String="[[:alpha:]_:][\w.:_-]*" attribute="Error" context="Attribute"/></context><context name="ElementCommonError" attribute="Error"><RegExpr String="[-\w.:_=]+|[^-\w.:_=/<>\s]+[-\w.:_]*|/>|[^<]" attribute="Error" context="#pop#pop"/><RegExpr String="<[[:alpha:]_:][\w.:_-]*" attribute="Error" context="#pop#pop!Element"/><StringDetect String="<!--" attribute="Error" context="#pop#pop!Comment" beginRegion="comment"/><StringDetect String="<![CDATA[" attribute="Error" context="#pop#pop!CDATA" beginRegion="cdata"/><DetectChar char="<" attribute="Error" context="#pop#pop"/></context><context name="FindPEntityRefs" attribute="Other Text"><RegExpr String="&(?:#[0-9]+|#[xX][0-9A-Fa-f]+|[[:alpha:]_:][\w.:_-]*);" attribute="EntityRef"/><RegExpr String="%[[:alpha:]_:][\w.:_-]*;" attribute="PEntityRef"/><AnyChar String="&%<" attribute="Error"/></context><context name="Value" attribute="Other Text"><DetectChar char='"' attribute="Value" context="Value DQ"/><DetectChar char="'" attribute="Value" context="Value SQ"/><DetectSpaces attribute="Other Text"/><IncludeRules context="FindAttributeCommonError"/></context><context name="CDATA" attribute="Other Text"><DetectSpaces/><DetectIdentifier/><StringDetect String="]]>" attribute="CDATA Symbols" context="#pop" endRegion="cdata"/></context><context name="Comment" attribute="Comment"><DetectSpaces/><StringDetect String="--" context="EndComment" lookAhead="1"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Doctype" attribute="Other Text"><DetectChar char=">" attribute="Doctype Symbols" context="#pop" endRegion="doctype"/><DetectChar char="[" attribute="Doctype Symbols" context="Doctype Internal Subset" beginRegion="int_subset"/></context><context name="El End" attribute="Other Text"><DetectChar char=">" attribute="Element Symbols" context="#pop#pop"/><DetectSpaces attribute="Other Text"/><IncludeRules context="ElementCommonError"/></context><context name="FindAttributeCommonError" attribute="Error"><DetectChar char=">" attribute="Error" context="#pop#pop"/><StringDetect String="/>" attribute="Error" context="#pop#pop" endRegion="element"/><DetectChar char="/" attribute="Error" context="#pop#pop" endRegion="element"/><RegExpr String="[[:alpha:]_:][\w.:_-]*(?=\s*=)" attribute="Error" context="#pop!Attribute"/><IncludeRules context="ElementCommonError"/></context><context name="FindComment" attribute="Other Text"><StringDetect String="<!--" attribute="Comment" context="Comment" beginRegion="comment"/></context><context name="FindEntityRefs" attribute="Other Text"><RegExpr String="&(?:#[0-9]+|#[xX][0-9A-Fa-f]+|[[:alpha:]_:][\w.:_-]*);" attribute="EntityRef"/></context><context name="FindProcessingInstruction" attribute="Other Text"><RegExpr String="<\?(?=([\w:_-]*))" attribute="PI Symbols" context="PI TagName" beginRegion="pi"/></context><context name="FindReservedChar" attribute="Other Text"><AnyChar String="&<" attribute="Error"/></context><context name="Value DQ" attribute="Value"><DetectChar char='"' attribute="Value" context="#pop#pop"/><IncludeRules context="ValueQ"/></context><context name="Value SQ" attribute="Value"><DetectChar char="'" attribute="Value" context="#pop#pop"/><IncludeRules context="ValueQ"/></context><context name="ValueQ" attribute="Value"><DetectIdentifier attribute="Value"/><DetectSpaces attribute="Value"/><Int attribute="Value"/><IncludeRules context="FindEntityRefs"/><IncludeRules context="FindReservedChar"/></context><context name="CDATAStart" attribute="Other Text" lineEndContext="#pop"><StringDetect String="<![" attribute="CDATA Symbols" beginRegion="cdata"/><StringDetect String="CDATA" attribute="CDATA"/><DetectChar char="[" attribute="CDATA Symbols" context="#pop!CDATA"/></context><context name="Doctype Internal Subset" attribute="Other Text"><DetectSpaces/><DetectChar char="]" attribute="Doctype Symbols" context="#pop" endRegion="int_subset"/><RegExpr String="<!(?=(ELEMENT|ENTITY|ATTLIST|NOTATION)\b)" attribute="Doctype Symbols" context="Doctype Markupdecl TagName"/><IncludeRules context="FindComment"/><IncludeRules context="FindProcessingInstruction"/><IncludeRules context="FindPEntityRefs"/></context><context name="Doctype Markupdecl DQ" attribute="Value"><DetectChar char='"' attribute="Value" context="#pop"/><IncludeRules context="FindPEntityRefs"/></context><context name="Doctype Markupdecl SQ" attribute="Value"><DetectChar char="'" attribute="Value" context="#pop"/><IncludeRules context="FindPEntityRefs"/></context><context name="Doctype Markupdecl TagName" attribute="Other Text" lineEndContext="#pop"><DetectIdentifier attribute="Doctype" context="#pop!Doctype Markupdecl VariableName"/></context><context name="Doctype Markupdecl VariableName" attribute="Other Text" fallthroughContext="#pop!Doctype Markupdecl" lineEndContext="#pop!Doctype Markupdecl"><DetectSpaces/><DetectChar char="%" attribute="Doctype Symbols"/><RegExpr String="[[:alpha:]_:][\w.:_-]*" attribute="Doctype Name" context="#pop!Doctype Markupdecl"/></context><context name="DoctypeTagName" attribute="Other Text" lineEndContext="#pop"><StringDetect String="DOCTYPE" attribute="Doctype" context="#pop!DoctypeVariableName"/></context><context name="DoctypeVariableName" attribute="Other Text" fallthroughContext="#pop!Doctype"><DetectSpaces/><RegExpr String="[[:alpha:]_:][\w.:_-]*" attribute="Doctype Name" context="#pop!Doctype"/></context><context name="El End TagName" attribute="Other Text" lineEndContext="#pop!El End"><StringDetect String="%1" attribute="Element" context="El End" dynamic="1"/></context><context name="ElementTagName" attribute="Other Text" lineEndContext="#pop!Element"><StringDetect String="%1" attribute="Element" context="#pop!Element" dynamic="1"/></context><context name="EndComment" attribute="Comment" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="-->" attribute="Comment" context="#pop#pop" endRegion="comment"/><DetectChar char="-" attribute="Error"/></context><context name="FindElement" attribute="Normal Text"><RegExpr String="<(?=([[:alpha:]_:][\w.:_-]*))" attribute="Element Symbols" context="ElementTagName" beginRegion="element"/><RegExpr String="</(?=([[:alpha:]_:][\w.:_-]*))" attribute="Element Symbols" context="El End TagName" endRegion="element"/><IncludeRules context="FindComment"/><StringDetect String="<![CDATA[" attribute="CDATA" context="CDATAStart" lookAhead="1"/><RegExpr String="<!(?=DOCTYPE(\s|$))" attribute="Doctype Symbols" context="DoctypeTagName" beginRegion="doctype"/><IncludeRules context="FindEntityRefs"/><IncludeRules context="FindProcessingInstruction"/><IncludeRules context="FindError"/></context><context name="FindError" attribute="Other Text"><IncludeRules context="FindReservedChar"/><StringDetect String="]]>" attribute="Error"/></context><context name="FindText" attribute="Normal Text"><DetectSpaces/><DetectIdentifier/><Int/></context><context name="PI TagName" attribute="Other Text" fallthroughContext="#pop!PI" lineEndContext="#pop!PI"><RegExpr String="xml(?=\s|$)" attribute="Processing Instruction" context="#pop!PI-XML" insensitive="1"/><StringDetect String="%1" attribute="Processing Instruction" context="#pop!PI" dynamic="1"/></context><context name="PI-XML" attribute="Other Text"><IncludeRules context="PI"/><DetectSpaces attribute="Other Text"/><DetectChar char="=" attribute="Attribute Separator" context="Value"/><RegExpr String="(?:^|(?<=\s))[[:alpha:]_:][\w.:_-]*" attribute="Attribute"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Other Text" defStyleNum="dsNormal"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="CDATA" defStyleNum="dsBaseN" bold="1" italic="0" spellChecking="0"/><itemData name="CDATA Symbols" defStyleNum="dsBaseN" bold="0" italic="0" spellChecking="0"/><itemData name="Processing Instruction" defStyleNum="dsFunction" bold="1" italic="0" spellChecking="0"/><itemData name="PI Symbols" defStyleNum="dsFunction" bold="0" italic="0" spellChecking="0"/><itemData name="Doctype" defStyleNum="dsDataType" bold="1" italic="0" spellChecking="0"/><itemData name="Doctype Name" defStyleNum="dsDataType" bold="0" italic="0" spellChecking="0"/><itemData name="Doctype Symbols" defStyleNum="dsDataType" bold="0" italic="0" spellChecking="0"/><itemData name="Element" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Element Symbols" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Attribute" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Attribute Separator" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Value" defStyleNum="dsString" spellChecking="0"/><itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="PEntityRef" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="<!--" end="-->" region="comment"/></comments></general></language> |