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
6 KiB
XML
1 line
No EOL
6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language version="14" kateversion="5.62" name="R Script" section="Scientific" extensions="*.R;*.r;*.S;*.s;*.q" mimetype="" license="GPLv2"><highlighting><list name="controls"><item>break</item><item>else</item><item>for</item><item>function</item><item>if</item><item>in</item><item>next</item><item>repeat</item><item>switch</item><item>while</item></list><list name="words"><item>FALSE</item><item>Inf</item><item>NA</item><item>NA_character_</item><item>NA_complex_</item><item>NA_integer_</item><item>NA_real_</item><item>NULL</item><item>NaN</item><item>TRUE</item></list><contexts><context name="level0" attribute="Normal Text"><IncludeRules context="CommonRules"/><AnyChar String="})" attribute="Error"/></context><context name="operator_rhs" attribute="Normal Text" fallthroughContext="#pop"><DetectSpaces/><IncludeRules context="FindComments"/><StringDetect String="!=" attribute="Error"/><AnyChar String="*/<>=|&:^@$~" attribute="Error"/></context><context name="CommonRules" attribute="Normal Text"><DetectSpaces/><IncludeRules context="FindComments"/><DetectChar char='"' attribute="String" context="string"/><DetectChar char="'" attribute="String" context="string2"/><DetectChar char="`" attribute="String" context="backquotedsymbol"/><keyword String="controls" attribute="Control Structure"/><keyword String="words" attribute="Reserved Words"/><Float attribute="Float"/><Int attribute="Int" context="NumericSuffix"/><RegExpr String="[a-zA-Z_]+[a-zA-Z_\.0-9]*(?=[\s]*[(])|\.[a-zA-Z_\.]+[a-zA-Z_\.0-9]*(?=[\s]*[(])" attribute="Keyword"/><DetectChar char="(" attribute="Symbol" context="parenthesis"/><StringDetect String="<<-" attribute="Assign" context="operator_rhs"/><StringDetect String="<-" attribute="Assign" context="operator_rhs"/><StringDetect String="->>" attribute="Assign" context="operator_rhs"/><StringDetect String="->" attribute="Assign" context="operator_rhs"/><RegExpr String="=(?!(=|>))" attribute="Assign" context="operator_rhs"/><StringDetect String="**" attribute="Operator" context="operator_rhs"/><StringDetect String="<=" attribute="Operator" context="operator_rhs"/><StringDetect String=">=" attribute="Operator" context="operator_rhs"/><StringDetect String="==" attribute="Operator" context="operator_rhs"/><StringDetect String="=>" attribute="Operator" context="operator_rhs"/><StringDetect String="!=" attribute="Operator" context="operator_rhs"/><StringDetect String="|>" attribute="Operator" context="operator_rhs"/><StringDetect String="||" attribute="Operator" context="operator_rhs"/><StringDetect String="&&" attribute="Operator" context="operator_rhs"/><StringDetect String=":::" attribute="Operator" context="operator_rhs"/><StringDetect String="::" attribute="Operator" context="operator_rhs"/><StringDetect String=":=" attribute="Operator" context="operator_rhs"/><AnyChar String="+-*/<>=!|&:^@$~" attribute="Operator" context="operator_rhs"/><RangeDetect char1="%" char="%" attribute="Operator" context="operator_rhs"/><DetectChar char="{" attribute="Symbol" context="ctx0" beginRegion="Brace1"/><AnyChar String="[]" attribute="Symbol"/></context><context name="FindComments" attribute="Normal Text"><StringDetect String="##" attribute="Headline" context="Headline"/><DetectChar char="#" attribute="Comment" context="Comment"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Headline" attribute="Headline" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="NumericSuffix" attribute="Numeric Suffix" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="Li" attribute="Numeric Suffix" context="#pop"/></context><context name="backquotedsymbol" attribute="Identifier"><DetectChar char="`" attribute="String" context="#pop"/><HlCStringChar attribute="String Char"/></context><context name="ctx0" attribute="Normal Text"><IncludeRules context="CommonRules"/><DetectChar char="}" attribute="Symbol" context="#pop" endRegion="Brace1"/><DetectChar char=")" attribute="Error"/></context><context name="parenthesis" attribute="Normal Text"><LineContinue attribute="Operator"/><DetectChar char=")" attribute="Symbol" context="#pop"/><RegExpr String="[a-zA-Z_\.][0-9a-zA-Z_\.]*[\s]*[:]?=(?=[^=]|$)" attribute="Identifier"/><IncludeRules context="CommonRules"/><DetectChar char="}" attribute="Error"/></context><context name="string" attribute="String"><DetectChar char='"' attribute="String" context="#pop"/><HlCStringChar attribute="String Char"/></context><context name="string2" attribute="String"><DetectChar char="'" attribute="String" context="#pop"/><HlCStringChar attribute="String Char"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Identifier" defStyleNum="dsAttribute" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Headline" defStyleNum="dsDocumentation" bold="1"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Assign" defStyleNum="dsOthers" bold="1" italic="0" spellChecking="0"/><itemData name="Control Structure" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Reserved Words" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/><itemData name="Operator" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Int" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Numeric Suffix" defStyleNum="dsDataType" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments><keywords casesensitive="1" weakDeliminator="." additionalDeliminator="$"/></general></language> |