Damson/assets/syntax/fish.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
30 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Fish" version="12" kateversion="6.22" section="Scripts" extensions="*.fish;fishd.*" mimetype="application/x-fish" author="Arnd Diestelhorst ([email protected])" license="LGPL"><highlighting><list name="commands"><item>abbr</item><item>alias</item><item>argparse</item><item>bg</item><item>bind</item><item>block</item><item>builtin</item><item>cd</item><item>cdh</item><item>command</item><item>commandline</item><item>complete</item><item>contains</item><item>count</item><item>dirs</item><item>disown</item><item>echo</item><item>emit</item><item>end</item><item>eval</item><item>exec</item><item>exit</item><item>fg</item><item>fish</item><item>fish_config</item><item>fish_indent</item><item>fish_key_reader</item><item>fish_mode_prompt</item><item>fish_opt</item><item>fish_prompt</item><item>fish_right_prompt</item><item>fish_update_completions</item><item>fish_vi_mode</item><item>funced</item><item>funcsave</item><item>functions</item><item>help</item><item>history</item><item>isatty</item><item>jobs</item><item>math</item><item>nextd</item><item>open</item><item>prevd</item><item>printf</item><item>psub</item><item>pushd</item><item>random</item><item>read</item><item>realpath</item><item>return</item><item>set</item><item>set_color</item><item>source</item><item>status</item><item>string</item><item>suspend</item><item>test</item><item>trap</item><item>type</item><item>ulimit</item><item>umask</item><item>vared</item></list><list name="commandsnoargs"><item>break</item><item>breakpoint</item><item>continue</item><item>dirh</item><item>false</item><item>popd</item><item>prompt_pwd</item><item>pwd</item><item>true</item></list><list name="commandsstay"><item>and</item><item>not</item><item>or</item></list><list name="stringsubcommands"><item>collect</item><item>escape</item><item>join</item><item>join0</item><item>length</item><item>lower</item><item>match</item><item>pad</item><item>repeat</item><item>replace</item><item>shorten</item><item>split</item><item>split0</item><item>sub</item><item>trim</item><item>unescape</item><item>upper</item></list><list name="unixcommands"><item>kill</item><include>unixcommands##Bash</include></list><contexts><context name="Root" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><DetectSpaces attribute="Normal Text"/><AnyChar String="|&amp;;" attribute="Separator"/><IncludeRules context="FindComment"/><StringDetect String="[&#9;" attribute="Builtin" context="ArgumentsTestBrack"/><StringDetect String="[ " attribute="Builtin" context="ArgumentsTestBrack"/><StringDetect String="!" context="NotOrCommand" lookAhead="1"/><StringDetect String="{" attribute="Keyword" context="Block" beginRegion="block"/><LineContinue attribute="Escape"/><AnyChar String="*?'&#34;$" context="Arguments!FieldSep!CommandPart" lookAhead="1"/><RegExpr String="[-+\w]++(?=[&#9; |;&lt;>)}]|&amp;([;|&#9; &amp;&lt;>]|$)|$)" context="CommandSimple" lookAhead="1"/><StringDetect String=". " attribute="Builtin" context="Arguments"/><RegExpr String="\w+(?==)" attribute="Variable" context="SetEnv"/><RegExpr String="(([^*?/$\\{}&#9; |;&lt;>()'&#34;]++|\\ |\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\}])*+(/+|(?=([^/$\\{}&#9; |;&lt;>()'&#34;]++|'([^/'\\]*|\\.)*+'?+|&#34;([^/&#34;\\$]*|\\.|\$+(\w*+|\(([-\w\s$]|\\.)*+\))(\[[-+&#9; 0-9]\])*+)*+&#34;?+|\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\}|\$+(\w*+|\(([-\w\s$]|\\.)*+\))(\[[-+&#9; 0-9]\])*+|\\.)*+/)))++" attribute="CommandPath" context="Arguments!FieldSep!CommandPart"/><AnyChar String=")}&lt;>" attribute="Error" context="Arguments!FieldSep"/><AnyChar String="(" attribute="Error" context="#pop"/></context><context name="PopWhenSep" attribute="Normal Text"><AnyChar String="&#9; |;&lt;>)}" context="#pop" lookAhead="1"/><AnyChar String="&amp;" context="PopWhenSep_amp" lookAhead="1"/></context><context name="FindVarExpansion" attribute="Normal Text"><StringDetect String="$" context="Variable" lookAhead="1"/></context><context name="FindFishExpr" attribute="Error"><IncludeRules context="FindFishExprWithoutBrace"/><IncludeRules context="FindBraceExpansion"/></context><context name="FindStrings" attribute="Normal Text"><DetectChar char="'" attribute="String SingleQ" context="StringSQ"/><DetectChar char='"' attribute="String DoubleQ" context="StringDQ"/></context><context name="FindSubstitutions" attribute="Normal Text"><DetectChar char="(" attribute="Keychar" context="CommandSubstitution"/></context><context name="ArgMaybePath" attribute="Normal Text" lineEndContext="#pop"><IncludeRules context="PopWhenSep"/><IncludeRules context="FindStrings"/><IncludeRules context="FindVarExpansion"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindEscape"/><AnyChar String="*?" attribute="Glob" context="#pop!ArgPath"/><RegExpr String="(^|(?&lt;=[&#9; ]))[.]{1,2}(?=(?=$|[&#9; |;&lt;>]|&amp;([;|&#9; &amp;&lt;>]|$)))|(([^/*?$\\{}&#9; |&amp;;&lt;>()'&#34;]++|((&amp;(?=[^;|&#9; &amp;&lt;>]))|\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\})])*+(/+|(?=([^/*?$\\{}&#9; |&amp;;&lt;>()'&#34;]++|'([^/'\\]*|\\.)*+'?+|&#34;([^/&#34;\\$]*|\\.|\$+(\w*+|\(([-\w\s$]|\\.)*+\))(\[[-+&#9; 0-9]\])*+)*+&#34;?+|((&amp;(?=[^;|&#9; &amp;&lt;>]))|\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\})|\$+(\w*+|\(([-\w\s$]|\\.)*+\))(\[[-+&#9; 0-9]\])*+|\\.)*+[/*?])))++" attribute="Path" context="#pop!ArgPath"/><RegExpr String="([^*?$\\{}&#9; |&amp;;&lt;>()'&#34;]++|((&amp;(?=[^;|&#9; &amp;&lt;>]))|\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\}))*+" attribute="Normal Text"/><IncludeRules context="FindRealBraceExpansion"/></context><context name="BraceList" attribute="Normal Text" lineEndContext="#pop#pop"><DetectChar char="}" attribute="Keychar" context="#pop"/><DetectChar char="," attribute="Separator"/><IncludeRules context="FindStrings"/><IncludeRules context="FindVarExpansion"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindBraceEscape"/><IncludeRules context="FindGlob"/><IncludeRules context="FindBraceExpansion"/><DetectChar char=")" context="#pop#pop" lookAhead="1"/></context><context name="DirectPath_then_FieldSep" attribute="Path" fallthroughContext="#pop!FieldSep!DirectPathTail!Home" lineEndContext="#pop#pop"><DetectSpaces attribute="Normal Text"/><DetectChar char="#" attribute="Error" context="#pop#pop!Comment"/><AnyChar String="&amp;|;" attribute="Error" context="#pop#pop"/><AnyChar String="&lt;>" attribute="Error" context="#pop!FieldSep"/><LineContinue attribute="Escape"/></context><context name="FindEmpty" attribute="Normal Text"><DetectSpaces attribute="Normal Text"/><LineContinue attribute="Escape" context="CommentSep"/></context><context name="FindFishExprWithoutBrace" attribute="Error"><IncludeRules context="FindStrings"/><IncludeRules context="FindVarExpansion"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindEscape"/><IncludeRules context="FindGlob"/></context><context name="FindGlob" attribute="Error"><AnyChar String="*?" attribute="Glob"/></context><context name="FindOption_then_FieldSep" attribute="Normal Text"><DetectChar char="-" attribute="Option" context="FieldSep!Option"/></context><context name="ArgPath" attribute="Path" lineEndContext="#pop#pop#pop"><IncludeRules context="PopWhenSep"/><IncludeRules context="FindFishExprWithoutBrace"/><IncludeRules context="FindPathBraceExpansion"/></context><context name="CommandSubstitution" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><DetectChar char=")" attribute="Keychar" context="#pop!Subscript"/><IncludeRules context="Root"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="FindBraceExpansion" attribute="Normal Text"><DetectChar char="{" context="MaybeBraceList" lookAhead="1"/></context><context name="FindEscape" attribute="Normal Text"><DetectChar char="\" context="Escape" lookAhead="1"/></context><context name="InSubscript" attribute="Error" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="]" attribute="Index" context="#pop!Subscript"/><StringDetect String="..." attribute="Error"/><RegExpr String="(\.\.(?=[^.]|$)|[-+]?[0-9]++|\s)*+" attribute="Index"/><AnyChar String="-+" attribute="Error"/><IncludeRules context="FindVarExpansion"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindStrings"/><LineContinue attribute="Escape"/><RegExpr String="[^/*?$\\{}&#9; |&amp;;&lt;>()'&#34;]" attribute="Error" context="#pop"/></context><context name="Redirect" attribute="Redirection" fallthroughContext="#pop#pop#pop!DirectPath_then_FieldSep" lineEndContext="#pop#pop#pop#pop"><DetectChar char="?" attribute="Redirection" context="#pop#pop#pop!DirectPath_then_FieldSep"/><DetectChar char="|" attribute="Redirection" context="#pop#pop#pop#pop"/><DetectChar char="&amp;" context="RedirectMaybeFd" lookAhead="1"/></context><context name="Arguments" attribute="Normal Text" fallthroughContext="FieldSep!ArgMaybePath" lineEndContext="#pop"><IncludeRules context="FindOption_then_FieldSep"/><AnyChar String="*?" attribute="Glob" context="FieldSep!ArgPath"/><DetectChar char="~" context="FieldSep!ArgMaybeHome" lookAhead="1"/></context><context name="ArgumentsTestBrack" attribute="Normal Text" fallthroughContext="FieldSep!ArgMaybePath" lineEndContext="#pop"><IncludeRules context="test"/><RegExpr String="(^\]|(?&lt;=[&#9; ])\])(?=\\?$|[&#9; |&amp;;&lt;>])" attribute="Builtin" context="#pop!ArgumentsNone!FieldSep"/></context><context name="CommandName" attribute="Command" lineEndContext="#pop#pop#pop"><IncludeRules context="PopWhenSep"/><IncludeRules context="FindStrings"/><IncludeRules context="FindVarExpansion"/><IncludeRules context="FindCommandEscape"/><IncludeRules context="FindGlob"/><IncludeRules context="FindBraceExpansion"/><DetectChar char="(" attribute="Error" context="#pop!CommandSubstitution"/></context><context name="DocstringDQ" attribute="Function Doc"><DetectChar char='"' attribute="Function Doc" context="#pop#pop#pop" endRegion="doc"/><IncludeRules context="StringDQ"/></context><context name="DocstringSQ" attribute="Function Doc"><DetectChar char="'" attribute="Function Doc" context="#pop#pop#pop" endRegion="doc"/><IncludeRules context="StringSQ"/></context><context name="Escape" attribute="Escape"><LineContinue attribute="Escape" context="#pop"/><RegExpr String="\\([abefnrtv $\\*?~#(){}[\]&lt;>&amp;|;&#34;']|[0-7]{1,3}|[xX][A-Fa-f0-9]{1,2}|u[A-Fa-f0-9]{1,4}|U[A-Fa-f0-9]{1,8}|c[a-zA-Z])|\\(?![xXuUc])" attribute="Escape" context="#pop"/><RegExpr String="\\." attribute="Error" context="#pop"/></context><context name="FieldSep" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop#pop"><IncludeRules context="FindEmpty"/><DetectChar char="#" attribute="Comment" context="#pop#pop!Comment"/><AnyChar String="&amp;&lt;>0123456789" context="MaybeRedirection" lookAhead="1"/><AnyChar String="|;" attribute="Separator" context="#pop#pop"/><AnyChar String=")}" context="#pop#pop" lookAhead="1"/></context><context name="FindComment" attribute="Comment"><DetectChar char="#" attribute="Comment" context="Comment"/></context><context name="NoBrace" attribute="Normal Text"><RegExpr String="\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\}|" context="#pop"/></context><context name="StringDQ" attribute="String DoubleQ"><DetectChar char='"' attribute="String DoubleQ" context="#pop"/><StringDetect String='\"' attribute="Escape"/><StringDetect String="\$" attribute="Escape"/><StringDetect String="\\" attribute="Escape"/><LineContinue attribute="Escape"/><IncludeRules context="FindVarExpansion"/></context><context name="StringSQ" attribute="String SingleQ"><DetectChar char="'" attribute="String SingleQ" context="#pop"/><StringDetect String="\'" attribute="Escape"/><StringDetect String="\\" attribute="Escape"/></context><context name="Subscript" attribute="Index" fallthroughContext="#pop" lineEndContext="#pop"><LineContinue attribute="Escape"/><DetectChar char="[" attribute="Index" context="#pop!InSubscript"/></context><context name="VarName" attribute="Error" fallthroughContext="#pop" lineEndContext="#pop"><DetectChar char="[" attribute="Index" context="#pop!InSubscript"/><LineContinue attribute="Escape" context="VarNameContinue"/></context><context name="funcdescClose" attribute="Function Doc" fallthroughContext="#pop#pop#pop#pop"><RegExpr String="." context="#pop#pop#pop#pop" endRegion="doc" lookAhead="1"/></context><context name="funcdescLong" attribute="Function Doc" fallthroughContext="#pop#pop#pop!ArgMaybePath"><DetectChar char="'" context="#pop!DocstringSQ"/><DetectChar char='"' context="#pop!DocstringDQ"/></context><context name="funcdescSpacing" attribute="Function Doc" fallthroughContext="funcdescClose" lineEndContext="funcdescClose"><IncludeRules context="funcdescLong"/><DetectSpaces/><LineContinue attribute="Escape"/></context><context name="Block" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><StringDetect String="}" attribute="Keyword" context="#pop!ArgumentsNone!FieldSep" endRegion="block"/><IncludeRules context="Root"/></context><context name="BraceEscape" attribute="Escape"><LineContinue attribute="Escape" context="#pop"/><RegExpr String="\\,|\\([abefnrtv $\\*?~#(){}[\]&lt;>&amp;|;&#34;']|[0-7]{1,3}|[xX][A-Fa-f0-9]{1,2}|u[A-Fa-f0-9]{1,4}|U[A-Fa-f0-9]{1,8}|c[a-zA-Z])|\\(?![xXuUc])" attribute="Escape" context="#pop"/><RegExpr String="\\." attribute="Error" context="#pop"/></context><context name="CommandEscape" attribute="Escape"><StringDetect String="\ " attribute="Command" context="#pop"/><IncludeRules context="Escape"/></context><context name="CommandPartCommand" attribute="Error"><keyword String="unixcommands" attribute="UnixCommand" context="#pop#pop"/><RegExpr String="[-+\w]++" attribute="Command" context="#pop#pop"/></context><context name="CommandSimple" attribute="Normal Text"><WordDetect String="test" attribute="Builtin" context="#pop!test!FieldSep"/><WordDetect String="set" attribute="Builtin" context="#pop!set!FieldSep"/><WordDetect String="if" attribute="Control Flow" context="#pop!if" beginRegion="if"/><WordDetect String="for" attribute="Control Flow" context="#pop!forbody!forin!FieldSep!VarNameWithoutBraceOrError!BlockSep4" beginRegion="for"/><WordDetect String="function" attribute="Keyword" context="#pop!funcbody!funcopts!FieldSep!funcname!BlockSep4" beginRegion="function"/><WordDetect String="switch" attribute="Control Flow" context="#pop!switchbody!switch!BlockSep2" beginRegion="switch"/><WordDetect String="while" attribute="Control Flow" context="#pop!while" beginRegion="while"/><WordDetect String="return" attribute="Control Flow" context="#pop!Arguments!FieldSep"/><WordDetect String="break" attribute="Control Flow" context="#pop!ArgumentsNone!FieldSep"/><WordDetect String="continue" attribute="Control Flow" context="#pop!ArgumentsNone!FieldSep"/><WordDetect String="string" attribute="Builtin" context="#pop!string!FieldSep"/><WordDetect String="read" attribute="Builtin" context="#pop!read_vared!FieldSep"/><WordDetect String="vared" attribute="Builtin" context="#pop!read_vared!FieldSep"/><WordDetect String="begin" attribute="Keyword" context="#pop!beginbody" beginRegion="begin"/><WordDetect String="command" attribute="Builtin" context="#pop!command_builtin!FieldSep"/><WordDetect String="builtin" attribute="Builtin" context="#pop!command_builtin!FieldSep"/><WordDetect String="eval" attribute="Builtin" context="#pop!eval!FieldSep"/><WordDetect String="time" attribute="Builtin" context="#pop"/><WordDetect String="exec" attribute="Builtin" context="#pop"/><keyword String="commands" attribute="Builtin" context="#pop!Arguments!FieldSep"/><keyword String="commandsnoargs" attribute="Builtin" context="#pop!ArgumentsNone!FieldSep"/><keyword String="commandsstay" attribute="Control Flow" context="#pop"/><keyword String="unixcommands" attribute="UnixCommand" context="#pop!Arguments!FieldSep"/><RegExpr String="[-+\w]++" attribute="Command" context="#pop!Arguments!FieldSep"/></context><context name="CommentSep" attribute="Normal Text" fallthroughContext="#pop"><DetectSpaces attribute="Normal Text"/><LineContinue attribute="Escape"/><IncludeRules context="FindComment"/></context><context name="DollarCommandSubstitution" attribute="Variable"><StringDetect String="$" attribute="Variable"/><StringDetect String="(" attribute="Keychar" context="#pop#pop!CommandSubstitution"/></context><context name="FdDigit" attribute="Error" lineEndContext="#pop#pop#pop"><IncludeRules context="PopWhenSep"/><AnyChar String="0123456789" attribute="Redirection"/><IncludeRules context="FindFishExprWithoutBrace"/><RegExpr String="." attribute="Error" context="#pop"/></context><context name="FindBraceEscape" attribute="Normal Text"><DetectChar char="\" context="BraceEscape" lookAhead="1"/></context><context name="FindCommandEscape" attribute="Normal Text"><DetectChar char="\" context="CommandEscape" lookAhead="1"/></context><context name="FindNoBraceOrError" attribute="Normal Text"><DetectChar char="{" context="NoBraceOrError" lookAhead="1"/></context><context name="FindPathBraceExpansion" attribute="Normal Text"><DetectChar char="{" attribute="Keychar" context="PathBraceList"/></context><context name="FindRealBraceExpansion" attribute="Normal Text"><DetectChar char="{" attribute="Keychar" context="BraceList"/></context><context name="FindSubscript" attribute="Index"><DetectChar char="[" attribute="Index" context="InSubscript"/></context><context name="MaybeBraceList" attribute="Normal Text"><IncludeRules context="NoBrace"/><DetectChar char="{" attribute="Keychar" context="#pop!BraceList"/></context><context name="MaybeRedirection" attribute="Normal Text" fallthroughContext="#pop#pop" lineEndContext="#pop#pop#pop"><StringDetect String="&amp;&amp;" attribute="Separator" context="#pop#pop#pop"/><StringDetect String="&amp;|" attribute="Redirection" context="#pop#pop#pop"/><StringDetect String="&amp;>>" attribute="Separator" context="Redirect"/><StringDetect String="&amp;>" attribute="Separator" context="Redirect"/><StringDetect String="&amp;" attribute="Separator" context="#pop#pop#pop"/><RegExpr String="[0-9]*(>>?|&lt;)" attribute="Redirection" context="Redirect"/></context><context name="NoBraceOrError" attribute="Normal Text"><IncludeRules context="NoBrace"/><DetectChar char="{" attribute="Error" context="#pop!BraceList"/></context><context name="NotOrCommand" attribute="Normal Text" fallthroughContext="#pop!Arguments!FieldSep!CommandPart"><RegExpr String="!(?=$|[&#9; |;&lt;>]|&amp;([;|&#9; &amp;&lt;>]|$))" attribute="Operator" context="#pop"/></context><context name="Option" attribute="Option" fallthroughContext="#pop!ArgMaybePath" lineEndContext="#pop#pop"><IncludeRules context="PopWhenSep"/><DetectChar char="=" attribute="Operator" context="#pop!ArgMaybePath"/><RegExpr String="[-A-Za-z0-9]+" attribute="Option"/><IncludeRules context="FindFishExpr"/></context><context name="PathBraceList" attribute="Path" lineEndContext="#pop#pop"><IncludeRules context="BraceList"/></context><context name="PopWhenSep_amp" attribute="Normal Text" fallthroughContext="#pop#pop"><RegExpr String="(&amp;(?=[^;|&#9; &amp;&lt;>]))|" context="#pop"/></context><context name="PrefixDollar2" attribute="Variable"><StringDetect String="$" attribute="Variable" context="#pop"/></context><context name="RedirectMaybeFd" attribute="Redirection" fallthroughContext="#pop#pop#pop#pop" lineEndContext="#pop#pop#pop#pop#pop"><RegExpr String="&amp;(?:[0-9]+|-|(?=['&#34;$(]|\\$))" attribute="Redirection" context="#pop#pop#pop#pop!FieldSep!Fd"/><DetectChar char="&amp;" attribute="Error" context="#pop#pop#pop#pop!DirectPath_then_FieldSep"/></context><context name="SetEnv" attribute="Normal Text"><DetectChar char="=" attribute="Builtin" context="#pop!VarValue"/></context><context name="VarNameContinue" attribute="Error" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><RegExpr String="\w+" attribute="Variable" context="#pop"/></context><context name="VarNameOrError" attribute="Error" lineEndContext="#pop#pop"><IncludeRules context="PopWhenSep"/><RegExpr String="\w+" attribute="Variable"/><IncludeRules context="FindFishExpr"/></context><context name="VarValue" attribute="Normal Text"><IncludeRules context="PopWhenSep"/><IncludeRules context="FindFishExpr"/></context><context name="Variable" attribute="Variable" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="$(" context="DollarCommandSubstitution" lookAhead="1"/><RegExpr String="(\$+\w+|\$(?=\\$))++" attribute="Variable" context="#pop!VarName"/><StringDetect String="$$" context="PrefixDollar!PrefixDollar2" lookAhead="1"/><StringDetect String="$" attribute="Error" context="#pop!VarName"/></context><context name="beginbody" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><WordDetect String="end" attribute="Keyword" context="#pop" endRegion="begin"/><IncludeRules context="Root"/></context><context name="else" attribute="Normal Text" fallthroughContext="#pop"><IncludeRules context="FindEmpty"/><WordDetect String="if" attribute="Control Flow" context="#pop"/></context><context name="funcdesc" attribute="Function Doc"><DetectChar char="'" context="DocstringSQ"/><DetectChar char='"' context="DocstringDQ"/><DetectChar char="=" attribute="Option" context="funcdescLong"/><AnyChar String="&#9; " context="funcdescSpacing"/><LineContinue attribute="Escape" context="funcdescSpacing"/></context><context name="if" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><WordDetect String="else" attribute="Control Flow" context="else" beginRegion="if" endRegion="if"/><WordDetect String="end" attribute="Control Flow" context="#pop" endRegion="if"/><IncludeRules context="Root"/></context><context name="switchend" attribute="Normal Text"><WordDetect String="end" attribute="Control Flow" context="#pop#pop" endRegion="switch"/></context><context name="test" attribute="Normal Text" fallthroughContext="FieldSep!ArgMaybePath" lineEndContext="#pop"><AnyChar String="*?" attribute="Glob" context="FieldSep!ArgPath"/><DetectChar char="~" context="FieldSep!ArgMaybeHome" lookAhead="1"/><RegExpr String="-[bcdefgGkLOprsStuwx](?=$|[&#9; |;&lt;>]|&amp;([;|&#9; &amp;&lt;>]|$))" attribute="Operator" context="DirectPath_then_FieldSep"/><RegExpr String="(-[nzao]|!|!?=|-eq|-ne|-gt|-ge|-lt|-le|-nt|-ot|-ef)(?=$|[&#9; |;&lt;>]|&amp;([;|&#9; &amp;&lt;>]|$))" attribute="Operator" context="FieldSep"/></context><context name="while" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><WordDetect String="end" attribute="Control Flow" context="#pop" endRegion="while"/><IncludeRules context="Root"/></context><context name="ArgMaybeHome" attribute="Path"><RegExpr String="~[-A-Za-z0-9._]*(?=/|$|[&#9; |;&lt;>]|&amp;([;|&#9; &amp;&lt;>]|$))" attribute="HomeDir" context="#pop!ArgPath"/><DetectChar char="~" attribute="Normal Text" context="#pop!ArgMaybePath"/></context><context name="ArgumentsNone" attribute="Error" lineEndContext="#pop"><IncludeRules context="PopWhenSep"/><DetectIdentifier attribute="Error" context="#pop!Arguments!FieldSep"/><Int attribute="Error" context="#pop!Arguments!FieldSep"/></context><context name="BlockSep2" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop#pop"><IncludeRules context="FindEmpty"/><AnyChar String="|;&amp;#)}&lt;>" context="#pop#pop" lookAhead="1"/></context><context name="BlockSep4" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop#pop#pop#pop"><IncludeRules context="FindEmpty"/><AnyChar String="|;&amp;#)}&lt;>" context="#pop#pop#pop#pop" lookAhead="1"/></context><context name="CommandPart" attribute="CommandPath" fallthroughContext="#pop!CommandName" lineEndContext="#pop#pop#pop"><IncludeRules context="CommandName"/><RegExpr String="(([^*?/$\\{}&#9; |;&lt;>()'&#34;]++|\\ |\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\}])*+(/+|(?=([^/$\\{}&#9; |;&lt;>()'&#34;]++|'([^/'\\]*|\\.)*+'?+|&#34;([^/&#34;\\$]*|\\.|\$+(\w*+|\(([-\w\s$]|\\.)*+\))(\[[-+&#9; 0-9]\])*+)*+&#34;?+|\{([^,\\{}()'&#34;$]*+|\{[^,\\{}()'&#34;$]*+\})*+\}|\$+(\w*+|\(([-\w\s$]|\\.)*+\))(\[[-+&#9; 0-9]\])*+|\\.)*+/)))++" attribute="CommandPath"/><RegExpr String="(?&lt;=^|/['&#34;]?)[-+\w]++(?=[&#9; |;&lt;>)}]|&amp;([;|&#9; &amp;&lt;>]|$)|$)" context="CommandPartCommand" lookAhead="1"/></context><context name="DirectPathTail" attribute="Path" lineEndContext="#pop#pop"><IncludeRules context="PopWhenSep"/><IncludeRules context="FindStrings"/><IncludeRules context="FindVarExpansion"/><IncludeRules context="FindSubstitutions"/><IncludeRules context="FindEscape"/><IncludeRules context="FindGlob"/><IncludeRules context="FindNoBraceOrError"/></context><context name="Fd" attribute="Redirection" fallthroughContext="#pop" lineEndContext="#pop#pop#pop"><AnyChar String="&#9; |;&lt;>)}&amp;" context="#pop" lookAhead="1"/><LineContinue attribute="Escape"/><DetectIdentifier attribute="Error" context="#pop"/><AnyChar String="'&#34;$(\" context="#pop!FdDigit" lookAhead="1"/></context><context name="Home" attribute="Path" fallthroughContext="#pop" lineEndContext="#pop#pop"><RegExpr String="~[-A-Za-z0-9._]*(?=/|$|[&#9; |;&lt;>]|&amp;([;|&#9; &amp;&lt;>]|$))" attribute="HomeDir" context="#pop"/></context><context name="PrefixDollar" attribute="Variable"><StringDetect String="$$" context="PrefixDollar2" lookAhead="1"/><StringDetect String="$" attribute="Error" context="#pop"/></context><context name="VarNameWithSubscriptOrError" attribute="Error" lineEndContext="#pop#pop#pop"><IncludeRules context="FindSubscript"/><IncludeRules context="VarNameOrError"/></context><context name="VarNameWithoutBraceOrError" attribute="Error" lineEndContext="#pop#pop"><IncludeRules context="PopWhenSep"/><RegExpr String="\w+" attribute="Variable"/><IncludeRules context="FindFishExprWithoutBrace"/></context><context name="casebody" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><WordDetect String="case" attribute="Control Flow" context="Arguments!FieldSep" beginRegion="case" endRegion="case"/><WordDetect String="end" context="switchend" endRegion="case" lookAhead="1"/><IncludeRules context="Root"/></context><context name="command_builtin" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><IncludeRules context="FindOption_then_FieldSep"/></context><context name="eval" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><StringDetect String="(" attribute="Keychar" context="#pop!Arguments!CommandSubstitution"/><StringDetect String="{" context="#pop!Arguments!FieldSep!CommandName" lookAhead="1"/></context><context name="forbody" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><WordDetect String="end" attribute="Control Flow" context="#pop" endRegion="for"/><IncludeRules context="Root"/></context><context name="forin" attribute="Error" fallthroughContext="#pop!Arguments!BlockSep2" lineEndContext="#pop!Arguments!BlockSep2"><WordDetect String="in" attribute="Keyword" context="#pop!Arguments!BlockSep2"/><DetectIdentifier attribute="Error" context="#pop!Arguments!BlockSep2"/><Int attribute="Error" context="#pop!Arguments!BlockSep2"/></context><context name="func_Option" attribute="Normal Text"><RegExpr String="-d[&#9; ]*(?=[&#34;']|\\$)|--description(?=[=&#9; ])" attribute="Option" context="funcdesc" beginRegion="doc"/><DetectChar char="-" attribute="Option" context="#pop!Option"/></context><context name="func_arg" attribute="Normal Text" lineEndContext="#pop#pop#pop"><IncludeRules context="PopWhenSep"/><IncludeRules context="FindFishExpr"/></context><context name="funcbody" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><WordDetect String="end" attribute="Keyword" context="#pop" endRegion="function"/><IncludeRules context="Root"/></context><context name="funcname" attribute="Command" lineEndContext="#pop#pop#pop"><IncludeRules context="PopWhenSep"/><DetectChar char="/" attribute="Error"/><IncludeRules context="FindFishExpr"/></context><context name="funcopts" attribute="Normal Text" fallthroughContext="FieldSep!func_arg" lineEndContext="#pop"><IncludeRules context="PopWhenSep"/><DetectChar char="-" context="FieldSep!func_Option" lookAhead="1"/></context><context name="read_vared" attribute="Error" fallthroughContext="FieldSep!VarNameOrError" lineEndContext="#pop"><IncludeRules context="FindOption_then_FieldSep"/></context><context name="set" attribute="Error" fallthroughContext="#pop!Arguments!FieldSep!VarNameWithSubscriptOrError" lineEndContext="#pop"><IncludeRules context="FindOption_then_FieldSep"/></context><context name="string" attribute="Error" fallthroughContext="#pop!Arguments" lineEndContext="#pop"><keyword String="stringsubcommands" attribute="Builtin" context="#pop!Arguments!FieldSep"/><DetectIdentifier attribute="Error" context="#pop!Arguments!FieldSep"/><Int attribute="Error" context="#pop!Arguments!FieldSep"/></context><context name="switch" attribute="Normal Text" lineEndContext="#pop"><IncludeRules context="PopWhenSep"/><IncludeRules context="FindFishExpr"/></context><context name="switchbody" attribute="Normal Text" fallthroughContext="Arguments!FieldSep!CommandName"><WordDetect String="case" attribute="Control Flow" context="#pop!casebody!Arguments!FieldSep" beginRegion="case"/><WordDetect String="end" attribute="Control Flow" context="#pop" endRegion="switch"/><IncludeRules context="Root"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Path" defStyleNum="dsNormal"/><itemData name="Option" defStyleNum="dsNormal"/><itemData name="Escape" defStyleNum="dsKeyword"/><itemData name="Separator" defStyleNum="dsKeyword"/><itemData name="Glob" defStyleNum="dsKeyword"/><itemData name="HomeDir" defStyleNum="dsKeyword"/><itemData name="Keychar" defStyleNum="dsSpecialChar"/><itemData name="Command" defStyleNum="dsFunction"/><itemData name="UnixCommand" defStyleNum="dsFunction"/><itemData name="CommandPath" defStyleNum="dsExtension"/><itemData name="Variable" defStyleNum="dsVariable"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Control Flow" defStyleNum="dsControlFlow"/><itemData name="Operator" defStyleNum="dsOperator"/><itemData name="Redirection" defStyleNum="dsOperator"/><itemData name="Builtin" defStyleNum="dsBuiltIn"/><itemData name="Index" defStyleNum="dsAttribute"/><itemData name="String SingleQ" defStyleNum="dsString"/><itemData name="String DoubleQ" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Function Doc" defStyleNum="dsDocumentation"/><itemData name="Error" defStyleNum="dsError"/></itemDatas></highlighting><general><keywords casesensitive="1" weakDeliminator="\+,-:=!.@#%^_`~/" wordWrapDeliminator="&#9; |&amp;;&lt;>()'&#34;"/><comments><comment name="singleLine" start="#" position="afterwhitespace"/></comments></general></language>