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
4.3 KiB
XML
1 line
No EOL
4.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="J" section="Scripts" version="7" kateversion="5.62" extensions="*.ijs;*.ijt;*.ijx" mimetype="text/x-j;text/x-jsrc" author="Igor Zhuravlov ([email protected]), greg heil ([email protected])" indenter="normal" license="GPL"><highlighting><list name="controls"><item>assert.</item><item>break.</item><item>case.</item><item>catch.</item><item>catchd.</item><item>catcht.</item><item>continue.</item><item>do.</item><item>else.</item><item>elseif.</item><item>end.</item><item>fcase.</item><item>for.</item><item>if.</item><item>return.</item><item>select.</item><item>throw.</item><item>try.</item><item>while.</item><item>whilst.</item><item>{{</item><item>}}</item></list><contexts><context name="sentence" attribute="Sentence" lineEndContext="#pop"><DetectSpaces/><StringDetect String="NB.(" attribute="Comment" beginRegion="CommentBlock"/><StringDetect String="NB.)" attribute="Comment" endRegion="CommentBlock"/><StringDetect String="NB. * " attribute="Annotation" context="annotation"/><StringDetect String="NB." attribute="Comment" context="comment line"/><RegExpr String="(?<![.\w])0\s+:\s*0|\bNote\s*'" attribute="Foldable" context="noun block" beginRegion="DefBlock"/><RegExpr String=":\s*0|\bdefine\b" attribute="Foldable" beginRegion="DefBlock"/><LineContinue char=")" attribute="Foldable" endRegion="DefBlock" column="0"/><StringDetect String="{{" attribute="Foldable" beginRegion="DDBlock"/><StringDetect String="}}" attribute="Foldable" endRegion="DDBlock"/><RegExpr String="'([^']|'')*'" attribute="String"/><RegExpr String="([/\\]\.|/\.\.|\]:|\b[bfM]\.|[~/\\}])(?![.:])" attribute="Adverb"/><RegExpr String='(_?\d:|p\.\.|[AcCeEIjLor]\.|__?:|[/\\iqsuxZ]:|\{::|[=!\]]|[-<>+*%$|,#\{][.:]?|[;\[]:?|[~}"ip][.:]|[?^]\.?|\b[uv](\b|\.))(?![.:])' attribute="Verb"/><RegExpr String="\b_?\d+b_?[a-z\d]+(\.[a-z\d]+)?\b|\b_?\d+x\b|\b_?\d+r_?\d+\b|\b(_?\d+(\.\d+)?(e_?\d+)?|_?_|_\.)((j|a[dr])(_?\d+(\.\d+)?(e_?\d+)?|_?_|_\.))?([px](_?\d+(\.\d+)?(e_?\d+)?|_?_|_\.)((j|a[dr])(_?\d+(\.\d+)?(e_?\d+)?|_?_|_\.))?)?(?![a-z\d_.])" attribute="Number"/><AnyChar String="()" attribute="Parenthese"/><RegExpr String='("|[:@&][.:]?|;?\.|![.:]|&\.:|[;[\]Hmt]\.|`:?|[LS^]:)(?![.:])' attribute="Conjunction"/><keyword String="controls" attribute="Control"/><RegExpr String="\b(for|goto|label)_[a-zA-Z]\w*\.(?![.:])" attribute="Control"/><StringDetect String="=:" attribute="Copulae Global"/><StringDetect String="=." attribute="Copulae Local"/><RegExpr String="\b(a[.:](?![.:])|[mnxy](?![\w.:]))" attribute="Noun"/></context><context name="annotation" attribute="Annotation" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="comment line" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="noun block" attribute="NounBlock"><DetectChar char=")" attribute="Foldable" context="#pop" endRegion="DefBlock" column="0"/></context></contexts><itemDatas><itemData name="Sentence" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Adverb" defStyleNum="dsOperator" spellChecking="0" bold="1"/><itemData name="Annotation" defStyleNum="dsAnnotation" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Conjunction" defStyleNum="dsOperator" spellChecking="0" bold="1"/><itemData name="Control" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Copulae Global" defStyleNum="dsBuiltIn" spellChecking="0"/><itemData name="Copulae Local" defStyleNum="dsBuiltIn" spellChecking="0" bold="0"/><itemData name="Foldable" defStyleNum="dsRegionMarker" spellChecking="0"/><itemData name="Noun" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="NounBlock" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Number" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Parenthese" defStyleNum="dsRegionMarker" spellChecking="0"/><itemData name="String" defStyleNum="dsString" spellChecking="0"/><itemData name="Verb" defStyleNum="dsOperator" spellChecking="0" bold="1"/></itemDatas></highlighting><general><keywords casesensitive="1" weakDeliminator=".{}"/><comments><comment name="singleLine" start="NB." position="afterwhitespace"/><comment name="multiLine" start="NB.(" end="NB.)" region="CommentBlock"/></comments><folding indentationsensitive="1"/></general></language> |