Damson/assets/syntax/tcsh.xml
astar76 11c1a7808b Build the syntax definitions into the app
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]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
14 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Tcsh" version="12" kateversion="5.62" section="Scripts" extensions="*.csh;*.tcsh;csh.cshrc;csh.login;.tcshrc;.cshrc;.login" mimetype="application/x-csh;text/x-csh" author="Matthew Woehlke ([email protected])" license="LGPL"><highlighting><list name="keywords"><item>.</item><item>function</item><item>in</item></list><list name="builtins"><item>:</item><item>alias</item><item>alloc</item><item>bg</item><item>bindkey</item><item>break</item><item>builtins</item><item>bye</item><item>cd</item><item>chdir</item><item>complete</item><item>continue</item><item>dirs</item><item>echo</item><item>echotc</item><item>eval</item><item>exec</item><item>exit</item><item>fg</item><item>filetest</item><item>glob</item><item>hashstat</item><item>history</item><item>hup</item><item>inlib</item><item>jobs</item><item>kill</item><item>limit</item><item>log</item><item>login</item><item>logout</item><item>ls-F</item><item>migrate</item><item>newgrp</item><item>nice</item><item>nohup</item><item>notify</item><item>onintr</item><item>popd</item><item>printenv</item><item>pushd</item><item>rehash</item><item>repeat</item><item>sched</item><item>settc</item><item>setty</item><item>shift</item><item>source</item><item>stop</item><item>suspend</item><item>telltc</item><item>time</item><item>umask</item><item>unalias</item><item>uncomplete</item><item>unhash</item><item>unlimit</item><item>ver</item><item>wait</item><item>watchlog</item><item>where</item><item>which</item></list><list name="builtins_var"><item>unset</item><item>unsetenv</item></list><list name="unixcommands"><item>command</item><item>printf</item><item>pwd</item><item>test</item><include>unixcommands##Bash</include></list><contexts><context name="Start" attribute="Normal Text"><IncludeRules context="FindAll"/></context><context name="FindMost" attribute="Normal Text"><IncludeRules context="FindComments"/><IncludeRules context="FindStrings"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindOthers"/></context><context name="FindSubstitutions" attribute="Normal Text"><RegExpr String="\$[A-Za-z_][A-Za-z0-9_]*\[" attribute="Variable" context="Subscript"/><RegExpr String="\$([A-Za-z_][A-Za-z0-9_]*)|\$[*@#?$!_0-9-]|\$\{[*@#?$!_0-9-]\}|\$\{#[A-Za-z_][A-Za-z0-9_]*\}|\$\{![A-Za-z_][A-Za-z0-9_]*\*?\}" attribute="Variable"/><RegExpr String="\$\{[A-Za-z_][A-Za-z0-9_]*|\$\{[*@#?$!_0-9-](?=[:#%/])" attribute="Variable" context="VarBrace"/><StringDetect String="$((" attribute="Variable" context="ExprDblParenSubst" beginRegion="expression"/><DetectChar char="`" attribute="Backquote" context="SubstBackq"/><RegExpr String="\\[`$\\]" attribute="Escape"/></context><context name="FindStrings" attribute="Normal Text"><DetectChar char="'" attribute="String SingleQ" context="StringSQ"/><DetectChar char='"' attribute="String DoubleQ" context="StringDQ"/><StringDetect String="$'" attribute="String SingleQ" context="StringEsc"/><StringDetect String='$"' attribute="String Transl." context="StringDQ"/></context><context name="FindOthers" attribute="Normal Text"><RegExpr String="\\[;&#34;\\'$`{}()|&amp;&lt;>* ]" attribute="Escape"/><RegExpr String="([\w_@.%*?+-]|\\ )*(?=/)|~\w*|/([\w_@.%*?+-]|\\ )*(?=([\s/):;$`'&#34;]|$))" attribute="Path"/></context><context name="Subscript" attribute="Variable"><DetectChar char="]" attribute="Variable" context="#pop"/><IncludeRules context="FindStrings"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindOthers"/></context><context name="ExprSubParen" attribute="Normal Text"><DetectChar char=")" attribute="Normal Text" context="#pop"/><DetectChar char="(" attribute="Normal Text" context="ExprSubParen"/><IncludeRules context="FindMost"/></context><context name="FindAll" attribute="Normal Text"><IncludeRules context="FindComments"/><IncludeRules context="FindCommands"/><IncludeRules context="FindStrings"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindOthers"/></context><context name="ArithmeticCondition" attribute="Normal Text"><DetectChar char=")" attribute="Keyword" context="#pop" endRegion="cond"/><DetectChar char="(" attribute="Keyword" context="ArithmeticCondition" beginRegion="cond"/><RegExpr String="[=!]~|[=!>&lt;]=" attribute="Expression"/><AnyChar String="|^&amp;>&lt;+-*/%!~" attribute="Expression"/><IncludeRules context="FindComments"/><IncludeRules context="FindStrings"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindOthers"/></context><context name="Assign" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><DetectChar char="(" attribute="Variable" context="AssignArray"/><IncludeRules context="FindStrings"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindOthers"/><RegExpr String="[\w:,+_./-]+" attribute="Normal Text"/></context><context name="FindComments" attribute="Normal Text" lineEndContext="#pop"><DetectChar char="#" attribute="Comment" context="Comment" firstNonSpace="1"/><RegExpr String="[\s;](?=#)" attribute="Normal Text" context="Comment"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="CommentBackq" attribute="Comment" lineEndContext="#pop"><RegExpr String="[^`](?=`)" attribute="Comment" context="#pop"/><IncludeRules context="##Comments"/></context><context name="FindCommands" attribute="Normal Text"><StringDetect String="((" attribute="Keyword" context="ExprDblParen" beginRegion="expression"/><RegExpr String="(^\[|\s\[)(?=($|\s))" attribute="Builtin" context="ExprBracket" beginRegion="expression" column="0"/><RegExpr String="\{(?=($|\s))" attribute="Keyword" context="Group" beginRegion="group"/><DetectChar char="(" attribute="Keyword" context="SubShell" beginRegion="subshell"/><RegExpr String="\bif(?![\w$+-])" attribute="Control Flow" context="If"/><RegExpr String="\belse\s+if(?![\w$+-])" attribute="Control Flow" context="ElseIf"/><RegExpr String="\belse(?![\w$+-])" attribute="Control Flow"/><RegExpr String="\bendif(?![\w$+-])" attribute="Control Flow" endRegion="if"/><RegExpr String="\bswitch(?![\w$+-])" attribute="Control Flow" context="Switch" beginRegion="switch"/><RegExpr String="\b(foreach|while)(?![\w$+-])" attribute="Control Flow" beginRegion="loop"/><RegExpr String="\bend(?![\w$+-])" attribute="Control Flow" endRegion="loop"/><RegExpr String="-[A-Za-z0-9][A-Za-z0-9_]*|--[a-z][A-Za-z0-9_-]*" attribute="Option"/><RegExpr String="\b@\s" attribute="Keyword"/><WordDetect String="set" attribute="Keyword"/><WordDetect String="setenv" attribute="Keyword" context="CmdSetEnv"/><StringDetect String=":()" attribute="Function"/><WordDetect String="function" attribute="Keyword" context="FunctionDef"/><keyword String="keywords" attribute="Keyword"/><keyword String="builtins" attribute="Builtin"/><keyword String="unixcommands" attribute="Command"/><keyword String="builtins_var" attribute="Builtin" context="VarName"/><RegExpr String="(&lt;&lt;?|>>?&amp;?!?)" attribute="Redirection"/><RegExpr String="([|&amp;])\1?" attribute="Control"/><RegExpr String="[A-Za-z_:][A-Za-z0-9_:#%@-]*\s*\(\)" attribute="Function"/></context><context name="StringDQ" attribute="String DoubleQ"><DetectChar char='"' attribute="String DoubleQ" context="#pop"/><RegExpr String='\\[`"\\$\n]' attribute="String Escape"/><IncludeRules context="FindSubstitutions"/></context><context name="SwitchExpr" attribute="Normal Text"><RegExpr String="\sbreaksw\b" attribute="Keyword" context="#pop#pop" endRegion="switchexpr"/><RegExpr String="\scase\b" attribute="Keyword" context="#pop#pop" endRegion="switchexpr" lookAhead="1"/><IncludeRules context="FindAll"/></context><context name="AssignArray" attribute="Normal Text" lineEndContext="#pop"><DetectChar char=")" attribute="Variable" context="#pop"/><DetectChar char="[" attribute="Variable" context="Subscript"/><DetectChar char="=" attribute="Variable" context="Assign"/><IncludeRules context="FindMost"/></context><context name="CmdSetEnv" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="\b[A-Za-z_][A-Za-z0-9_]*" attribute="Variable" context="#pop"/><AnyChar String="&#9; " attribute="Variable" context="Assign"/><IncludeRules context="FindMost"/></context><context name="ElseIf" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces/><DetectChar char="(" attribute="Keyword" context="ArithmeticCondition" beginRegion="cond"/><DetectChar char="[" attribute="Variable" context="Subscript"/><StringDetect String="then" attribute="Control Flow" context="#pop"/></context><context name="ExprBracket" attribute="Normal Text"><RegExpr String="(\s\]|^\])(?=($|[\s;|&amp;]))" attribute="Builtin" context="#pop" endRegion="expression"/><DetectChar char="(" attribute="Normal Text" context="ExprSubParen"/><IncludeRules context="FindTests"/><IncludeRules context="FindMost"/></context><context name="ExprDblParen" attribute="Normal Text"><StringDetect String="))" attribute="Keyword" context="#pop" endRegion="expression"/><DetectChar char="(" attribute="Normal Text" context="ExprSubParen"/><IncludeRules context="FindMost"/></context><context name="ExprDblParenSubst" attribute="Normal Text"><StringDetect String="))" attribute="Variable" context="#pop" endRegion="expression"/><DetectChar char="(" attribute="Normal Text" context="ExprSubParen"/><IncludeRules context="FindMost"/></context><context name="FindCommentsBackq" attribute="Normal Text" lineEndContext="#pop"><DetectChar char="#" attribute="Comment" context="CommentBackq" firstNonSpace="1"/><RegExpr String="[\s;](?=#)" attribute="Normal Text" context="CommentBackq"/></context><context name="FindTests" attribute="Normal Text"><RegExpr String="-[rwxXeozsfdlbcpSugktRLDIFNZ](?=\s)|-[AMCUG]:?(?=\s)|-P[0-7]{,3}:?(?=\s)|[=!][~=]|[*>&lt;!~]" attribute="Expression"/></context><context name="FunctionDef" attribute="Function" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="\s+[A-Za-z_:][A-Za-z0-9_:#%@-]*(\s*\(\))?" attribute="Function" context="#pop"/></context><context name="Group" attribute="Normal Text"><DetectChar char="}" attribute="Keyword" context="#pop" endRegion="group"/><IncludeRules context="FindAll"/></context><context name="If" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces/><DetectChar char="(" attribute="Keyword" context="ArithmeticCondition" beginRegion="cond"/><DetectChar char="[" attribute="Variable" context="Subscript"/><StringDetect String="then" attribute="Control Flow" context="#pop" beginRegion="if"/></context><context name="StringEsc" attribute="String SingleQ"><DetectChar char="'" attribute="String SingleQ" context="#pop"/><RegExpr String="\\[abefnrtv\\']|\\([0-7]{1,3}|x[A-Fa-f0-9]{1,2}|c.)" attribute="String Escape"/></context><context name="StringSQ" attribute="String SingleQ"><DetectChar char="'" attribute="String SingleQ" context="#pop"/></context><context name="SubShell" attribute="Normal Text"><DetectChar char=")" attribute="Keyword" context="#pop" endRegion="subshell"/><IncludeRules context="FindAll"/></context><context name="SubstBackq" attribute="Normal Text"><DetectChar char="`" attribute="Backquote" context="#pop"/><IncludeRules context="FindCommentsBackq"/><IncludeRules context="FindCommands"/><IncludeRules context="FindStrings"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindOthers"/></context><context name="Switch" attribute="Normal Text"><RegExpr String="\scase\b" attribute="Keyword" context="SwitchCase"/><RegExpr String="\sdefault\b" attribute="Keyword" context="SwitchDefault"/><RegExpr String="\bendsw(?=$|[\s;)])" attribute="Keyword" context="#pop" endRegion="switch"/><IncludeRules context="FindMost"/></context><context name="SwitchCase" attribute="Normal Text"><DetectChar char=":" attribute="Keyword" context="SwitchExpr" beginRegion="switchexpr"/><IncludeRules context="FindMost"/></context><context name="SwitchDefault" attribute="Normal Text"><DetectChar char=":" attribute="Keyword" context="SwitchExpr" beginRegion="switchexpr"/></context><context name="VarBrace" attribute="Variable"><DetectChar char="}" attribute="Variable" context="#pop"/><DetectChar char="[" attribute="Variable" context="Subscript"/><IncludeRules context="FindStrings"/><IncludeRules context="FindSubstitutions"/></context><context name="VarName" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="-[A-Za-z0-9]+|--[a-z][A-Za-z0-9_-]*" attribute="Option"/><RegExpr String="\b[A-Za-z_][A-Za-z0-9_]*" attribute="Variable"/><DetectChar char="[" attribute="Variable" context="Subscript"/><DetectChar char="=" attribute="Variable" context="Assign"/><IncludeRules context="FindMost"/><RegExpr String="[^]})|;`&amp;>&lt;]" attribute="Normal Text"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Control" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Builtin" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Command" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Redirection" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Escape" defStyleNum="dsDataType" spellChecking="0"/><itemData name="String SingleQ" defStyleNum="dsString"/><itemData name="String DoubleQ" defStyleNum="dsString"/><itemData name="Backquote" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="String Transl." defStyleNum="dsString" spellChecking="0"/><itemData name="String Escape" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Variable" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Expression" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Path" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Option" defStyleNum="dsNormal" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#" position="afterwhitespace"/></comments><keywords casesensitive="1" weakDeliminator="^%#[]$._{}:-" additionalDeliminator="`"/></general></language>