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 KiB
XML
1 line
No EOL
3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language section="Markup" name="Textile" version="6" kateversion="5.62" extensions="*.textile" priority="15" author="Alexander Kabakov ([email protected])" license="LGPL"><highlighting><contexts><context name="Normal Text" attribute="Normal Text"><StringDetect String="<!--" attribute="comment" context="comment" beginRegion="comment"/><RegExpr String="\{\{(?![0-9])[\w_:][\w.:_-]*\}\}" attribute="macro"/><StringDetect String="h1" context="sectiontitle_block" column="0"/><StringDetect String="h2" context="sectionheader_block" column="0"/><StringDetect String="h3" context="sectionheader_block" column="0"/><StringDetect String="h4" context="sectionheader_block" column="0"/><StringDetect String="h5" context="sectionheader_block" column="0"/><RegExpr String="^(p|pre|bq|bc)(\(\w+(#\w+)?\))?(>|<|=|<>)?\." attribute="textblock" column="0"/><DetectChar char="!" context="image"/><IncludeRules context="inc"/><RegExpr String="^[\*\#]+\s" attribute="itemlist" column="0"/><RegExpr String='".*":http(s)?:[\w_/\\\d\.%\?&=-]*' attribute="htmllink"/></context><context name="sectionheader_block" attribute="sectionheader" lineEndContext="#pop"><RegExpr String="(\(\w+(#\w+)?\))?" attribute="sectionblockattrs"/></context><context name="comment" attribute="comment"><DetectSpaces/><StringDetect String="-->" attribute="comment" context="#pop" endRegion="comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="image" attribute="image" lineEndContext="#pop"><RegExpr String="(\(\w+(#\w+)?\))?" attribute="blockattrs"/><RegExpr String="\w+\.(png|jpg|jpeg|gif|bmp)" attribute="imagefilename"/><DetectChar char="!" attribute="image" context="#pop"/></context><context name="inc" attribute="Normal Text"><RegExpr String="(\s|^)\*[^*]\w.*\w[^*]\*(\s|\.|,|;|:|\-|\?|$)" attribute="strong"/><RegExpr String="(\s|^)-[^-]\w.*\w[^-]-(\s|\.|,|;|:|\-|\?|$)" attribute="strikeout" minimal="1"/></context><context name="sectiontitle_block" attribute="sectiontitle" lineEndContext="#pop"><RegExpr String="(\(\w+(#\w+)?\))?" attribute="sectionblockattrs"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="sectiontitle" defStyleNum="dsKeyword" bold="1"/><itemData name="sectionheader" defStyleNum="dsFunction" bold="1"/><itemData name="sectionblockattrs" defStyleNum="dsComment" bold="1"/><itemData name="blockattrs" defStyleNum="dsComment"/><itemData name="textblock" defStyleNum="dsComment"/><itemData name="strong" defStyleNum="dsNormal" bold="1"/><itemData name="strikeout" defStyleNum="dsNormal" strikeOut="1"/><itemData name="itemlist" defStyleNum="dsDataType"/><itemData name="macro" defStyleNum="dsComment" bold="1"/><itemData name="comment" defStyleNum="dsComment"/><itemData name="image" defStyleNum="dsFloat"/><itemData name="imagefilename" defStyleNum="dsKeyword"/><itemData name="htmllink" defStyleNum="dsDataType"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="<!--" end="-->" region="comment"/></comments></general></language> |