| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language |
| 3 |
[ |
| 4 |
<!ENTITY tab "	"> |
| 5 |
<!ENTITY funcname "[^&_fragpathseps;=]*+"> |
| 6 |
<!ENTITY varname "[A-Za-z_][A-Za-z0-9_]*"> |
| 7 |
<!ENTITY eos "(?=$|[ &tab;])"> <!-- eol or space following --> |
| 8 |
<!ENTITY eoexpr "(?=$|[ &tab;<>|&;)])"> |
| 9 |
|
| 10 |
<!ENTITY substseps "${}'"`\\"> |
| 11 |
<!ENTITY symbolseps "<>|&;()"> |
| 12 |
<!ENTITY wordseps " &tab;&symbolseps;"> |
| 13 |
<!ENTITY wordseps_or_extglog " &tab;>|&;)`"> <!-- wordseps without < and ( --> |
| 14 |
|
| 15 |
<!ENTITY bq_string "`[^`]*+`"> |
| 16 |
<!ENTITY sq_string "'[^']*+'"> |
| 17 |
<!ENTITY dq_string ""(?:[^"\\`]*+|&bq_string;|\\.)*+""> |
| 18 |
<!ENTITY strings "(?:&sq_string;|&dq_string;|&bq_string;)"> |
| 19 |
|
| 20 |
<!ENTITY simpleglob "*?#^~"> |
| 21 |
<!ENTITY globrange "<[0-9]*-[0-9]*>"> |
| 22 |
<!ENTITY globany "\[(?:[^&wordseps;"'`\\\[\]]+|\\.|&strings;|\[:\w+:\]|\[)*\]"> |
| 23 |
|
| 24 |
<!ENTITY _fragpathseps "&simpleglob;[&wordseps;&substseps;"> |
| 25 |
<!ENTITY _fragpathnosep "(?:&_brace_noexpansion;)?+"> |
| 26 |
<!ENTITY path "(?:[^&_fragpathseps;]*+&_fragpathnosep;)*+"> |
| 27 |
<!ENTITY fragpath "(?:[^&_fragpathseps;/]*+&_fragpathnosep;)*+"> |
| 28 |
<!ENTITY fragpathesc "\\.(?:[^&_fragpathseps;/]*+(?:\\.|&_brace_noexpansion;)?+)*+"> |
| 29 |
<!ENTITY opt "(?:[^&_fragpathseps;=/]*+&_fragpathnosep;)*+"> |
| 30 |
<!ENTITY assumepath "/&path;|(?=[&simpleglob;([]|&globrange;)"> |
| 31 |
<!ENTITY pathpart "(?:~(?:/&path;|(?=[&wordseps;]|$))|&fragpath;(?:&assumepath;|(?=&fragpathesc;&assumepath;))|\.\.?(?=[&wordseps;]|$))"> |
| 32 |
|
| 33 |
<!-- Path only with / --> |
| 34 |
<!ENTITY path_with_sep_text "[^[&wordseps;'"`\\/]"> |
| 35 |
<!ENTITY path_with_sep_text2 "[^[()<>'"`\\/]"> |
| 36 |
<!ENTITY path_with_sep_expr "\\.|&strings;|&globany;|&globrange;"> |
| 37 |
<!ENTITY path_with_sep_spe "(~|\.\.?)($|[/ &tab;<>|&;)])"> |
| 38 |
<!ENTITY path_with_sep_sub "\((&path_with_sep_text2;++|&path_with_sep_expr;)*+(\)|(?=/))"> |
| 39 |
<!ENTITY path_with_sep "/|&path_with_sep_spe;|(&path_with_sep_text;++|&path_with_sep_expr;|&path_with_sep_sub;)*+/"> |
| 40 |
|
| 41 |
<!ENTITY _braceexpansion_spe " &tab;<>|&;{}\\`'"$"> |
| 42 |
<!ENTITY _brace_noexpansion "\{[^&_braceexpansion_spe;,]*+\}"> |
| 43 |
<!ENTITY _braceexpansion_var "\$(?:\{[^\[\]&_braceexpansion_spe;]*+(?:\[[*@a-zA-Z0-9]\])\})?"> |
| 44 |
<!ENTITY _braceexpansion_elems "\\.|&strings;|&_braceexpansion_var;|&_brace_noexpansion;"> |
| 45 |
<!ENTITY _braceexpansion_consume "&_braceexpansion_elems;|{(?:[^&_braceexpansion_spe;,]++|&_braceexpansion_elems;)*?}|(?R)?+"> |
| 46 |
<!ENTITY _braceexpansion "(?:[^&_braceexpansion_spe;,]++|&_braceexpansion_consume;)*?,(?:[^&_braceexpansion_spe;]++|&_braceexpansion_consume;)*?}"> |
| 47 |
<!ENTITY braceexpansion "{&_braceexpansion;"> |
| 48 |
|
| 49 |
<!ENTITY _bracerangevar "\$([#+^=~]*([_a-zA-Z0-9]+|[*@#])(\[((\$[#+^=~]*)?([-+_a-zA-Z0-9]+|[*@])|$#)\])?|#|'(\\.|[^'\\])')"> |
| 50 |
<!ENTITY _bracerangeoperand "-?([0-9]+|[a-zA-Z!#$%*+,-./:=?@^_~]|&_bracerangevar;|\\.|'[^'\\]'|"(\\.|[^"\\`])"|`[^`]*`)"> |
| 51 |
<!ENTITY bracerangeexpansion "{(?=&_bracerangeoperand;\.\.&_bracerangeoperand;(\.\.-?([0-9]+|&_bracerangevar;))?})"> |
| 52 |
|
| 53 |
<!ENTITY nobraceexpansion "(?:{([^&_braceexpansion_spe;/{},]++|(?R))+?})+"> |
| 54 |
<!ENTITY nogroupend "(?:}+(?:[^&_fragpathseps;]|(?=[}$'"`\\])))"> |
| 55 |
|
| 56 |
<!-- glob with |, ( or spaces is a pattern --> |
| 57 |
<!ENTITY _ispattern_ugN "[ug][0123456789]+"> |
| 58 |
<!ENTITY _ispattern_ugeP "[ugeP](?:&_ispattern_ugeP_0;|&_ispattern_ugeP_1;|&_ispattern_ugeP_2;|&_ispattern_ugeP_3;|&_ispattern_ugeP_4;|(?=\|))"> |
| 59 |
<!ENTITY _ispattern_ugeP_0 ":(?:[^:'`"\\|()]*+(?:&_ispattern_q;)?)*(?::|(?=[|()]))"> |
| 60 |
<!ENTITY _ispattern_ugeP_1 "\[(?:[^]'`"\\|()]*+(?:&_ispattern_q;)?)*(?:\](?=[|()]))"> |
| 61 |
<!ENTITY _ispattern_ugeP_2 "{(?:[^}'`"\\|()]*+(?:&_ispattern_q;)?)*(?:}(?=[|()]))"> |
| 62 |
<!ENTITY _ispattern_ugeP_3 "<(?:[^>'`"\\|()]*+(?:&_ispattern_q;)?)*(?:>|(?=[|()]))"> |
| 63 |
<!ENTITY _ispattern_ugeP_4 "([^&wordseps;{}'"`\\])(?:(?:(?!\1)[^'`"\\\1|()])*+(?:&_ispattern_q;)?)*(?:\1|(?=[|()]))"> |
| 64 |
<!ENTITY _ispattern_q "\\.|&strings;"> |
| 65 |
<!ENTITY _ispattern_check "(?:\)(?:[^ &tab;}<>|&;)]|&nogroupend;)|[ &tab;|(]|$)"> |
| 66 |
<!ENTITY ispattern "(?:[^ &tab;\\'"|()`ugeP]*+(?:&_ispattern_ugN;|&_ispattern_ugeP;|&_ispattern_q;)?)*&_ispattern_check;"> |
| 67 |
|
| 68 |
<!ENTITY heredocq "(?|"([^"]+)"|'([^']+)'|\\(.[^&wordseps;&substseps;]*))"> |
| 69 |
|
| 70 |
<!ENTITY arithmetic_as_subshell "\(((?:[^`'"()$]++|\$\{[^`'"(){}$]+\}|\$(?=[^{`'"()])|&bq_string;|\((?1)(?:[)]|(?=['"])))++)(?:[)](?=$|[^)])|["'])"> |
| 71 |
|
| 72 |
<!ENTITY unary_operators "-[abcdefghknoprstuvwxzLOGNS]&eos;"> |
| 73 |
<!ENTITY binary_operators "(?:-(?:e[fq]|[nolg]t|[nlg]e)|==?|!=)&eos;"> |
| 74 |
|
| 75 |
<!ENTITY dblbracket_close "\]\](?=($|[ &tab;;|&)]))"> |
| 76 |
|
| 77 |
<!ENTITY int "(?:[0-9]++[_0-9]*+)"> |
| 78 |
<!ENTITY exp "(?:[eE][-+]?∫)"> |
| 79 |
]> |
| 80 |
<language name="Zsh" version="31" kateversion="5.79" section="Scripts" extensions="*.sh;*.zsh;.zshrc;.zprofile;.zlogin;.zlogout;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Jonathan Poelen ([email protected])" license="MIT"> |
| 81 |
|
| 82 |
<highlighting> |
| 83 |
<list name="keywords"> |
| 84 |
<item>continue</item> |
| 85 |
<item>break</item> |
| 86 |
<item>case</item> |
| 87 |
<item>do</item> |
| 88 |
<item>done</item> |
| 89 |
<item>elif</item> |
| 90 |
<item>else</item> |
| 91 |
<item>end</item> |
| 92 |
<item>esac</item> |
| 93 |
<item>fi</item> |
| 94 |
<item>for</item> |
| 95 |
<item>foreach</item> |
| 96 |
<item>function</item> |
| 97 |
<item>if</item> |
| 98 |
<item>in</item> |
| 99 |
<item>repeat</item> |
| 100 |
<item>return</item> |
| 101 |
<item>select</item> |
| 102 |
<item>then</item> |
| 103 |
<item>until</item> |
| 104 |
<item>while</item> |
| 105 |
</list> |
| 106 |
|
| 107 |
<list name="builtins"><!-- see man zshbuiltins --> |
| 108 |
<item>-</item> |
| 109 |
<item>.</item> |
| 110 |
<item>:</item> |
| 111 |
<item>alias</item> |
| 112 |
<item>autoload</item> |
| 113 |
<item>bg</item> |
| 114 |
<item>bindkey</item> |
| 115 |
<item>builtin</item> |
| 116 |
<item>bye</item> |
| 117 |
<item>cap</item> |
| 118 |
<item>cd</item> |
| 119 |
<item>chdir</item> |
| 120 |
<item>clone</item> |
| 121 |
<item>command</item> |
| 122 |
<item>comparguments</item> |
| 123 |
<item>compcall</item> |
| 124 |
<item>compctl</item> |
| 125 |
<item>compdescribe</item> |
| 126 |
<item>compfiles</item> |
| 127 |
<item>compgroups</item> |
| 128 |
<item>compquote</item> |
| 129 |
<item>comptags</item> |
| 130 |
<item>comptry</item> |
| 131 |
<item>compvalues</item> |
| 132 |
<item>coproc</item> |
| 133 |
<item>dirs</item> |
| 134 |
<item>disable</item> |
| 135 |
<item>disown</item> |
| 136 |
<item>echo</item> |
| 137 |
<item>echotc</item> |
| 138 |
<item>echoti</item> |
| 139 |
<item>emulate</item> |
| 140 |
<item>enable</item> |
| 141 |
<item>eval</item> |
| 142 |
<item>exec</item> |
| 143 |
<item>exit</item> |
| 144 |
<item>false</item> |
| 145 |
<item>fc</item> |
| 146 |
<item>fg</item> |
| 147 |
<item>functions</item> |
| 148 |
<item>getcap</item> |
| 149 |
<item>hash</item> |
| 150 |
<item>history</item> |
| 151 |
<item>jobs</item> |
| 152 |
<item>kill</item> |
| 153 |
<item>limit</item> |
| 154 |
<item>log</item> |
| 155 |
<item>logout</item> |
| 156 |
<item>nocorrect</item> |
| 157 |
<item>noglob</item> |
| 158 |
<item>popd</item> |
| 159 |
<item>print</item> |
| 160 |
<item>printf</item> |
| 161 |
<item>pushd</item> |
| 162 |
<item>pushln</item> |
| 163 |
<item>pwd</item> |
| 164 |
<item>r</item> |
| 165 |
<item>rehash</item> |
| 166 |
<item>sched</item> |
| 167 |
<item>set</item> |
| 168 |
<item>setcap</item> |
| 169 |
<item>setopt</item> |
| 170 |
<item>shift</item> |
| 171 |
<item>source</item> |
| 172 |
<item>stat</item> |
| 173 |
<item>suspend</item> |
| 174 |
<item>test</item> |
| 175 |
<item>times</item> |
| 176 |
<item>trap</item> |
| 177 |
<item>true</item> |
| 178 |
<item>ttyctl</item> |
| 179 |
<item>type</item> |
| 180 |
<item>ulimit</item> |
| 181 |
<item>umask</item> |
| 182 |
<item>unalias</item> |
| 183 |
<item>unfunction</item> |
| 184 |
<item>unhash</item> |
| 185 |
<item>unlimit</item> |
| 186 |
<item>unset</item> |
| 187 |
<item>unsetopt</item> |
| 188 |
<item>vared</item> |
| 189 |
<item>wait</item> |
| 190 |
<item>whence</item> |
| 191 |
<item>where</item> |
| 192 |
<item>which</item> |
| 193 |
<item>zcompile</item> |
| 194 |
<item>zformat</item> |
| 195 |
<item>zftp</item> |
| 196 |
<item>zle</item> |
| 197 |
<item>zmodload</item> |
| 198 |
<item>zparseopts</item> |
| 199 |
<item>zprof</item> |
| 200 |
<item>zpty</item> |
| 201 |
<item>zregexparse</item> |
| 202 |
<item>zsocket</item> |
| 203 |
<item>zstyle</item> |
| 204 |
<item>ztcp</item> |
| 205 |
</list> |
| 206 |
|
| 207 |
<list name="builtins_var"> |
| 208 |
<item>declare</item> |
| 209 |
<item>export</item> |
| 210 |
<item>float</item> |
| 211 |
<item>getln</item> |
| 212 |
<item>getopts</item> |
| 213 |
<item>integer</item> |
| 214 |
<item>let</item> |
| 215 |
<item>local</item> |
| 216 |
<item>read</item> |
| 217 |
<item>readonly</item> |
| 218 |
<item>typeset</item> |
| 219 |
<item>unset</item> |
| 220 |
</list> |
| 221 |
|
| 222 |
<list name="unixcommands"> |
| 223 |
<include>unixcommands##Bash</include> |
| 224 |
</list> |
| 225 |
|
| 226 |
<contexts> |
| 227 |
<context attribute="Normal Text" lineEndContext="#stay" name="Start" fallthroughContext="Command"> |
| 228 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 229 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 230 |
<!-- start expression in double parentheses --> |
| 231 |
<Detect2Chars context="ExprDblParenOrSubShell" char="(" char1="(" lookAhead="1"/> |
| 232 |
<!-- start a subshell --> |
| 233 |
<DetectChar attribute="Keyword" context="SubShell" char="(" beginRegion="subshell"/> |
| 234 |
<!-- start expression in single/double brackets --> |
| 235 |
<DetectChar context="MaybeBracketExpression" char="[" lookAhead="1"/> |
| 236 |
<!-- start a group command or BraceExpansion with { --> |
| 237 |
<DetectChar attribute="Keyword" context="Group" char="{" beginRegion="group"/> |
| 238 |
|
| 239 |
<!-- handle ` --> |
| 240 |
<DetectChar attribute="Backquote" context="CommandBackq" char="`"/> |
| 241 |
|
| 242 |
<!-- &> redirections --> |
| 243 |
<Detect2Chars attribute="Redirection" context="Prefix&>" char="&" char1=">"/> |
| 244 |
<Detect2Chars attribute="Control" context="#stay" char="&" char1="!"/> |
| 245 |
|
| 246 |
<!-- handle branche conditions --> |
| 247 |
<Detect2Chars attribute="Control" context="#stay" char="&" char1="&"/> |
| 248 |
<Detect2Chars attribute="Control" context="#stay" char="|" char1="|"/> |
| 249 |
|
| 250 |
<!-- handle &, |, ; --> |
| 251 |
<AnyChar attribute="Control" context="#stay" String="&|;"/> |
| 252 |
|
| 253 |
<!-- handle variable assignments --> |
| 254 |
<RegExpr attribute="Variable" context="VarAssign" String="&varname;(?=\+?=|\[(?:$|[^]]))|[0-9]+(?=\+?=)"/> |
| 255 |
<!-- handle keywords --> |
| 256 |
<keyword context="DispatchKeyword" String="keywords" lookAhead="1"/> |
| 257 |
<!-- handle commands that have variable names as argument --> |
| 258 |
<keyword attribute="Builtin" context="VarName" String="builtins_var" lookAhead="1"/> |
| 259 |
<WordDetect attribute="Builtin" context="#stay" String="noglob"/> |
| 260 |
<WordDetect attribute="Builtin" context="#stay" String="coproc"/> |
| 261 |
<!-- mark function definitions without function keyword --> |
| 262 |
<RegExpr attribute="Function" context="#stay" String="&funcname;[ &tab;]*\(\)"/> |
| 263 |
<keyword attribute="Builtin" context="CommandArgs" String="builtins"/> |
| 264 |
<keyword attribute="Command" context="CommandArgs" String="unixcommands"/> |
| 265 |
|
| 266 |
<!-- handle redirection --> |
| 267 |
<AnyChar context="CommandMaybeRedirection" String="<>0123456789" lookAhead="1"/> |
| 268 |
|
| 269 |
<DetectChar attribute="Error" context="#stay" char=")"/> |
| 270 |
<DetectChar context="MaybeGroupEnd" char="}" lookAhead="1"/> |
| 271 |
|
| 272 |
<LineContinue attribute="Escape" context="#stay"/> |
| 273 |
|
| 274 |
<Detect2Chars attribute="Expression" context="#stay" char="!" char1=" "/> |
| 275 |
</context> |
| 276 |
<context attribute="Normal Text" lineEndContext="#pop" name="MaybeGroupEnd"> |
| 277 |
<RegExpr context="#pop!Command" String="&nogroupend;" lookAhead="1"/> |
| 278 |
<DetectChar attribute="Error" context="#pop" char="}"/> |
| 279 |
</context> |
| 280 |
<context attribute="Normal Text" lineEndContext="#pop" name="MaybeBracketExpression" fallthroughContext="#pop!Command"> |
| 281 |
<!-- start expression in double brackets --> |
| 282 |
<RegExpr attribute="Keyword" context="#pop!ExprDblBracket" String="\[\[(?=$|[ &tab;(])" beginRegion="expression"/> |
| 283 |
<!-- start expression in single brackets --> |
| 284 |
<RegExpr attribute="Builtin" context="#pop!ExprBracket" String="\[&eos;" beginRegion="expression"/> |
| 285 |
</context> |
| 286 |
<context attribute="Normal Text" lineEndContext="#pop" name="CommandMaybeRedirection" fallthroughContext="#pop!Command"> |
| 287 |
<IncludeRules context="FindRedirection"/> |
| 288 |
</context> |
| 289 |
<context attribute="Normal Text" lineEndContext="#pop" name="Return" fallthroughContext="#pop"> |
| 290 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 291 |
<Int attribute="Number" context="#stay"/> |
| 292 |
</context> |
| 293 |
<!-- Comment consumes shell comments till EOL --> |
| 294 |
<context attribute="Comment" lineEndContext="#pop" name="Comment"> |
| 295 |
<DetectSpaces attribute="Comment"/> |
| 296 |
<IncludeRules context="##Comments"/> |
| 297 |
<DetectIdentifier attribute="Comment" context="#stay"/> |
| 298 |
</context> |
| 299 |
|
| 300 |
<!-- Group is called after a { is encountered --> |
| 301 |
<context attribute="Normal Text" lineEndContext="#stay" name="Group" fallthroughContext="Command"> |
| 302 |
<DetectChar attribute="Keyword" context="#pop!GroupEnd" char="}" endRegion="group"/> |
| 303 |
<IncludeRules context="Start"/> |
| 304 |
</context> |
| 305 |
<context attribute="Normal Text" lineEndContext="#pop" name="GroupEnd" fallthroughContext="#pop!CommandArgs"> |
| 306 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 307 |
<WordDetect attribute="Control Flow" context="#pop" String="always"/> |
| 308 |
</context> |
| 309 |
|
| 310 |
<context attribute="OtherCommand" lineEndContext="#pop" name="Command"> |
| 311 |
<DetectSpaces attribute="Normal Text" context="#pop!CommandArgs"/> |
| 312 |
<DetectIdentifier attribute="OtherCommand" context="#stay"/> |
| 313 |
<DetectChar context="CommandVariables" char="$" lookAhead="1"/> |
| 314 |
<IncludeRules context="FindStrings"/> |
| 315 |
<Detect2Chars attribute="Control" context="#pop" char="&" char1="&"/> |
| 316 |
<Detect2Chars attribute="Control" context="#pop" char="|" char1="|"/> |
| 317 |
<DetectChar attribute="Control" context="#pop" char="|"/> |
| 318 |
<AnyChar context="#pop" String=";)`" lookAhead="1"/> |
| 319 |
<AnyChar context="#pop!CommandArgs" String="&<>" lookAhead="1"/> |
| 320 |
<!-- start expression in double parentheses --> |
| 321 |
<Detect2Chars attribute="Error" context="#pop!ExprDblParen" char="(" char1="(" beginRegion="expression"/> |
| 322 |
<!-- start a subshell --> |
| 323 |
<DetectChar attribute="Error" context="#pop!SubShell" char="(" beginRegion="subshell"/> |
| 324 |
<DetectChar context="CommandAssumeEscape" char="\" lookAhead="1"/> |
| 325 |
<DetectChar context="CommandMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 326 |
<DetectChar context="CommandMaybeGroupEnd" char="}" lookAhead="1"/> |
| 327 |
</context> |
| 328 |
<context attribute="Command" lineEndContext="#pop" name="CommandVariables"> |
| 329 |
<IncludeRules context="DispatchVariables"/> |
| 330 |
<DetectChar attribute="OtherCommand" context="#pop" char="$"/> |
| 331 |
</context> |
| 332 |
<context attribute="OtherCommand" lineEndContext="#pop" name="CommandAssumeEscape"> |
| 333 |
<LineContinue attribute="Escape" context="#pop"/> |
| 334 |
<RegExpr attribute="OtherCommand" context="#pop" String="\\."/> |
| 335 |
</context> |
| 336 |
<context attribute="OtherCommand" lineEndContext="#pop" name="CommandMaybeBraceExpansion"> |
| 337 |
<IncludeRules context="DispatchBraceExpansion"/> |
| 338 |
<DetectChar attribute="OtherCommand" context="#pop" char="{"/> |
| 339 |
</context> |
| 340 |
<context attribute="Normal Text" lineEndContext="#pop" name="CommandMaybeGroupEnd"> |
| 341 |
<RegExpr attribute="OtherCommand" context="#pop" String="&nogroupend;+"/> |
| 342 |
<DetectChar context="#pop#pop" char="}" lookAhead="1"/> |
| 343 |
</context> |
| 344 |
|
| 345 |
<context attribute="Variable" lineEndContext="#pop" name="DispatchVariables"> |
| 346 |
<IncludeRules context="DispatchSubstVariables"/> |
| 347 |
<IncludeRules context="DispatchStringVariables"/> |
| 348 |
<IncludeRules context="DispatchVarNameVariables"/> |
| 349 |
</context> |
| 350 |
<context attribute="Variable" lineEndContext="#pop" name="DispatchSubstVariables"> |
| 351 |
<Detect2Chars attribute="Parameter Expansion" context="#pop!VarBraceStart" char="$" char1="{"/> |
| 352 |
<StringDetect context="#pop!ExprDblParenSubstOrSubstCommand" String="$((" lookAhead="1"/> |
| 353 |
<Detect2Chars attribute="Parameter Expansion" context="#pop!SubstCommand" char="$" char1="(" beginRegion="subshell"/> |
| 354 |
</context> |
| 355 |
<context attribute="Variable" lineEndContext="#pop" name="DispatchStringVariables"> |
| 356 |
<Detect2Chars attribute="String SingleQ" context="#pop!StringEsc" char="$" char1="'"/> |
| 357 |
<Detect2Chars attribute="String Transl." context="#pop!StringDQ" char="$" char1="""/> |
| 358 |
</context> |
| 359 |
<context attribute="Variable" lineEndContext="#pop" name="DispatchVarNameVariables"> |
| 360 |
<RegExpr attribute="Dollar Prefix" context="#pop!VarNamePrefixedWithDollar" String="\$(?=&varname;|[0-9]+|[-*@?$!#~=^+])"/> |
| 361 |
</context> |
| 362 |
<context attribute="Variable" lineEndContext="#pop" name="VarNamePrefixedWithDollar"> |
| 363 |
<DetectIdentifier attribute="Variable" context="#pop!AfterVarName"/> |
| 364 |
<Int attribute="Variable" context="#pop!AfterVarName" additionalDeliminator="$"/> |
| 365 |
<AnyChar attribute="Variable" context="#pop!AfterVarName" String="-*@?$!"/> |
| 366 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarNameSubstLen" char="#"/> |
| 367 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarNameParam+" char="+"/> |
| 368 |
<AnyChar attribute="Parameter Expansion Operator" context="#pop!VarNameParam" String="~=^"/> |
| 369 |
</context> |
| 370 |
<context attribute="Variable" lineEndContext="#pop" name="VarNameSubstLen" fallthroughContext="#pop!AfterVarName"> |
| 371 |
<DetectIdentifier attribute="Variable" context="#pop!AfterVarName"/> |
| 372 |
<AnyChar attribute="Variable" context="#pop!AfterVarName" String="-*@?$!"/> |
| 373 |
<Int attribute="Variable" context="#pop!AfterVarName" additionalDeliminator="#~=^+{}[]:-/$"/> |
| 374 |
</context> |
| 375 |
<context attribute="Variable" lineEndContext="#pop" name="VarNameParam" fallthroughContext="#pop!AfterVarName"> |
| 376 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarNameSubstLen" char="#"/> |
| 377 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarNameParam+" char="+"/> |
| 378 |
<AnyChar attribute="Parameter Expansion Operator" context="#stay" String="^=~"/> |
| 379 |
<IncludeRules context="VarNameSubstLen"/> |
| 380 |
</context> |
| 381 |
<context attribute="Variable" lineEndContext="#pop" name="VarNameParam+" fallthroughContext="#pop"> |
| 382 |
<IncludeRules context="VarNameSubstLen"/> |
| 383 |
</context> |
| 384 |
|
| 385 |
<!-- called as soon as $xxx is encoutered --> |
| 386 |
<context attribute="Normal Text" lineEndContext="#pop" name="AfterVarName" fallthroughContext="#pop"> |
| 387 |
<DetectChar context="VarNameDispatchModifiers" char=":" lookAhead="1"/> |
| 388 |
<DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> |
| 389 |
</context> |
| 390 |
<context attribute="Normal Text" lineEndContext="#pop#pop" name="VarNameDispatchModifiers" fallthroughContext="#pop#pop"> |
| 391 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="a"/> |
| 392 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="A"/> |
| 393 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="c"/> |
| 394 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="e"/> |
| 395 |
<Detect2Chars attribute="Parameter Expansion" context="#pop!VarNameModifier_h" char=":" char1="h"/> |
| 396 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="l"/> |
| 397 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="p"/> |
| 398 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="P"/> |
| 399 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="q"/> |
| 400 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="Q"/> |
| 401 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="r"/> |
| 402 |
<Detect2Chars attribute="Parameter Expansion" context="#pop!VarNameModifier_s" char=":" char1="s"/> |
| 403 |
<Detect2Chars attribute="Parameter Expansion" context="#pop!VarNameModifier_h" char=":" char1="t"/> |
| 404 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="u"/> |
| 405 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="x"/> |
| 406 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=":" char1="&"/> |
| 407 |
<StringDetect attribute="Parameter Expansion" context="#pop!VarNameModifier_s" String=":gs"/> |
| 408 |
</context> |
| 409 |
<context attribute="Normal Text" lineEndContext="#pop#pop" name="VarNameModifier_h" fallthroughContext="#pop"> |
| 410 |
<AnyChar attribute="Number" context="#stay" String="0123456789"/> |
| 411 |
</context> |
| 412 |
<context attribute="Parameter Expansion Operator" lineEndContext="#pop#pop" name="VarNameModifier_s" fallthroughContext="#pop#pop"> |
| 413 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarNameModifier_s_Str" char="/"/> |
| 414 |
</context> |
| 415 |
<context attribute="String SingleQ" lineEndContext="#pop#pop" name="VarNameModifier_s_Str"> |
| 416 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarNameModifier_s_Rep" char="/"/> |
| 417 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 418 |
<DetectChar attribute="String DoubleQ" context="#pop" char="""/> |
| 419 |
<DetectChar attribute="String SingleQ" context="#pop" char="'"/> |
| 420 |
</context> |
| 421 |
<context attribute="String SingleQ" lineEndContext="#pop#pop" name="VarNameModifier_s_Rep"> |
| 422 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 423 |
<IncludeRules context="FindWord"/> |
| 424 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="/"/> |
| 425 |
<AnyChar context="#pop#pop" String=" &tab;<>|&;()" lookAhead="1"/> |
| 426 |
<DetectIdentifier attribute="String SingleQ"/> |
| 427 |
</context> |
| 428 |
|
| 429 |
<context attribute="Normal Text" lineEndContext="#stay" name="CommandBackq" fallthroughContext="Command"> |
| 430 |
<DetectChar attribute="Backquote" context="#pop!CommandArgs" char="`"/> |
| 431 |
<DetectChar attribute="Comment" context="CommentBackq" char="#"/> |
| 432 |
<IncludeRules context="Start"/> |
| 433 |
</context> |
| 434 |
<!-- CommentBackq consumes shell comments till EOL or a backquote --> |
| 435 |
<context attribute="Comment" lineEndContext="#pop" name="CommentBackq"> |
| 436 |
<DetectChar context="#pop" char="`" lookAhead="1"/> |
| 437 |
<IncludeRules context="Comment"/> |
| 438 |
</context> |
| 439 |
|
| 440 |
<!-- CommandArgs matches the items after a command --> |
| 441 |
<context attribute="Normal Text" lineEndContext="#pop" name="CommandArgs" fallthroughContext="CommandArg"> |
| 442 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 443 |
|
| 444 |
<!-- &> redirections --> |
| 445 |
<Detect2Chars attribute="Redirection" context="Prefix&>" char="&" char1=">"/> |
| 446 |
|
| 447 |
<!-- handle &, |, ;, ` --> |
| 448 |
<AnyChar context="#pop" String="&|;`" lookAhead="1"/> |
| 449 |
|
| 450 |
<!-- handle process subst --> |
| 451 |
<Detect2Chars attribute="Redirection" context="ProcessSubst" char="=" char1="("/> |
| 452 |
<!-- handle redirection --> |
| 453 |
<AnyChar context="CommandArgMaybeRedirection" String="><0123456789" lookAhead="1"/> |
| 454 |
|
| 455 |
<DetectChar context="#pop" char=")" lookAhead="1"/> |
| 456 |
</context> |
| 457 |
<context attribute="Normal Text" lineEndContext="#pop#pop" name="CommandArg" fallthroughContext="#pop!NormalOption"> |
| 458 |
<!-- In command arguments, do not allow comments after escaped characters. |
| 459 |
This avoids highlighting comments within paths or other text. Ex: pathtext\ #no\ comment --> |
| 460 |
<DetectChar context="#pop#pop" char="#" lookAhead="1"/> |
| 461 |
<Detect2Chars attribute="Option" context="#pop!LongOption" char="-" char1="-"/> |
| 462 |
<DetectChar attribute="Option" context="#pop!ShortOption" char="-"/> |
| 463 |
<DetectChar attribute="Keyword" context="#pop!NormalOption" char="="/> |
| 464 |
</context> |
| 465 |
<context attribute="Normal Text" lineEndContext="#pop" name="CommandArgMaybeRedirection" fallthroughContext="#pop!NormalOption"> |
| 466 |
<IncludeRules context="FindRedirection"/> |
| 467 |
</context> |
| 468 |
|
| 469 |
<context attribute="Option" lineEndContext="#pop" name="ShortOption" fallthroughContext="#pop"> |
| 470 |
<DetectChar attribute="Path" context="PathThenPop" char="/"/> |
| 471 |
<IncludeRules context="LongOption"/> |
| 472 |
</context> |
| 473 |
<context attribute="Option" lineEndContext="#pop" name="LongOption" fallthroughContext="#pop"> |
| 474 |
<AnyChar context="#pop" String="&wordseps_or_extglog;" lookAhead="1"/> |
| 475 |
<DetectChar attribute="Operator" context="#pop!NormalOption" char="="/> |
| 476 |
<IncludeRules context="FindWord"/> |
| 477 |
<IncludeRules context="FindSingleGlob"/> |
| 478 |
<IncludeRules context="FindGlobAny"/> |
| 479 |
<AnyChar context="#pop!NormalOption" String="({}<" lookAhead="1"/> |
| 480 |
<RegExpr attribute="Option" context="#stay" String="&opt;"/> |
| 481 |
</context> |
| 482 |
<context attribute="Normal Text" lineEndContext="#pop" name="NormalOption" fallthroughContext="#pop"> |
| 483 |
<AnyChar context="#pop" String="&wordseps_or_extglog;" lookAhead="1"/> |
| 484 |
<IncludeRules context="FindWord"/> |
| 485 |
<DetectChar attribute="Glob" context="PathThenPop" char="[" lookAhead="1"/> |
| 486 |
<DetectChar context="ExprGlobParenThenPath" char="(" lookAhead="1"/> |
| 487 |
<IncludeRules context="FindPathThenPop"/> |
| 488 |
<DetectChar context="NormalOptionMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 489 |
<DetectChar context="NormalOptionMaybeGroupEnd" char="}" lookAhead="1"/> |
| 490 |
<IncludeRules context="FindNormalTextOption"/> |
| 491 |
<DetectChar context="MaybeGlobRangeOrPop" char="<" lookAhead="1"/> |
| 492 |
</context> |
| 493 |
<context attribute="Normal Text" lineEndContext="#pop#pop" name="NormalOptionRecBrace"> |
| 494 |
<AnyChar context="#pop#pop" String="&wordseps_or_extglog;" lookAhead="1"/> |
| 495 |
<IncludeRules context="FindWord"/> |
| 496 |
<IncludeRules context="FindSingleGlob"/> |
| 497 |
<IncludeRules context="FindGlobAny"/> |
| 498 |
<DetectChar context="ExprGlobParen" char="(" lookAhead="1"/> |
| 499 |
<DetectChar context="NormalOptionMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 500 |
<DetectChar attribute="Normal Text" context="#pop" char="}"/> |
| 501 |
<DetectChar context="MaybeGlobRangeOrPop" char="<" lookAhead="1"/> |
| 502 |
<DetectIdentifier/> |
| 503 |
</context> |
| 504 |
<context attribute="Normal Text" lineEndContext="#pop" name="NormalOptionMaybeGroupEnd"> |
| 505 |
<IncludeRules context="FindNoGroupEndThenPop"/> |
| 506 |
<DetectChar context="#pop#pop#pop" char="}" lookAhead="1"/> |
| 507 |
</context> |
| 508 |
<context attribute="Normal Text" lineEndContext="#pop" name="FindNoGroupEndThenPop"> |
| 509 |
<RegExpr context="#pop" String="&nogroupend;"/> |
| 510 |
</context> |
| 511 |
<context attribute="Normal Text" lineEndContext="#stay" name="FindNormalTextOption"> |
| 512 |
<RegExpr attribute="Normal Text" context="#stay" String="([^[&wordseps;&substseps;]+|&nogroupend;)+"/> |
| 513 |
</context> |
| 514 |
<context attribute="Normal Text" lineEndContext="#pop" name="NormalOptionMaybeBraceExpansion"> |
| 515 |
<IncludeRules context="DispatchBraceExpansion"/> |
| 516 |
<DetectChar attribute="Normal Text" context="#pop!NormalOptionRecBrace" char="{"/> |
| 517 |
</context> |
| 518 |
|
| 519 |
<context attribute="Normal Text" lineEndContext="#pop" name="AssumeEscape"> |
| 520 |
<LineContinue attribute="Escape" context="#pop"/> |
| 521 |
<RegExpr attribute="Escape" context="#pop" String="\\."/> |
| 522 |
</context> |
| 523 |
|
| 524 |
<!-- ====== The following rulessets are meant to be included ======== --> |
| 525 |
|
| 526 |
<!-- FindRedirection consumes shell redirection --> |
| 527 |
<context attribute="Normal Text" lineEndContext="#pop" name="FindRedirection"> |
| 528 |
<RegExpr attribute="File Descriptor" context="#pop!AssumeRedirection" String="[0-9]++(?=[<>])"/> |
| 529 |
<IncludeRules context="AssumeRedirection"/> |
| 530 |
</context> |
| 531 |
|
| 532 |
<!-- DispatchBraceExpansion consumes brace expansions --> |
| 533 |
<context attribute="Normal Text" lineEndContext="#pop" name="DispatchBraceExpansion"> |
| 534 |
<RegExpr context="#pop!BraceExpansion" String="&braceexpansion;" lookAhead="1"/> |
| 535 |
<IncludeRules context="IncBraceExpansion"/> |
| 536 |
</context> |
| 537 |
<context attribute="Normal Text" lineEndContext="#pop" name="DispatchPathBraceExpansion"> |
| 538 |
<RegExpr context="#pop!PathBraceExpansion" String="&braceexpansion;" lookAhead="1"/> |
| 539 |
<IncludeRules context="IncBraceExpansion"/> |
| 540 |
</context> |
| 541 |
<context attribute="Normal Text" lineEndContext="#pop" name="IncBraceExpansion"> |
| 542 |
<RegExpr attribute="Escape" context="#pop!SequenceExpression" String="&bracerangeexpansion;"/> |
| 543 |
<RegExpr context="#pop" String="&nobraceexpansion;"/> |
| 544 |
</context> |
| 545 |
|
| 546 |
<!-- FindPathThenPop consumes path --> |
| 547 |
<context attribute="Normal Text" lineEndContext="#pop" name="FindPathThenPop"> |
| 548 |
<AnyChar attribute="Glob" context="PathThenPop" String="?*#^"/> |
| 549 |
<RegExpr attribute="Path" context="PathThenPop" String="&pathpart;"/> |
| 550 |
<DetectChar attribute="Glob" context="PathThenPop" char="~"/> |
| 551 |
</context> |
| 552 |
<context attribute="Path" lineEndContext="#pop#pop" name="IncPath"> |
| 553 |
<IncludeRules context="FindWord"/> |
| 554 |
<IncludeRules context="FindSingleGlob"/> |
| 555 |
<IncludeRules context="FindGlobAny"/> |
| 556 |
<DetectChar context="ExprGlobParen" char="(" lookAhead="1"/> |
| 557 |
<RegExpr attribute="Path" context="#stay" String="&path;"/> |
| 558 |
<DetectChar context="MaybeGlobRangeOrPop" char="<" lookAhead="1"/> |
| 559 |
<DetectChar context="PathMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 560 |
</context> |
| 561 |
<context attribute="Path" lineEndContext="#pop#pop" name="PathThenPop"> |
| 562 |
<AnyChar context="#pop#pop" String="&wordseps_or_extglog;" lookAhead="1"/> |
| 563 |
<IncludeRules context="IncPath"/> |
| 564 |
<DetectChar context="PathMaybeGroupEnd" char="}" lookAhead="1"/> |
| 565 |
<DetectIdentifier attribute="Path"/> |
| 566 |
</context> |
| 567 |
<context attribute="Path" lineEndContext="#pop" name="PathRecBrace"> |
| 568 |
<AnyChar context="#pop" String="&wordseps_or_extglog;" lookAhead="1"/> |
| 569 |
<IncludeRules context="IncPath"/> |
| 570 |
<DetectChar attribute="Path" context="#pop" char="}"/> |
| 571 |
<DetectIdentifier attribute="Path"/> |
| 572 |
</context> |
| 573 |
<context attribute="Glob" lineEndContext="#stay" name="MaybeGlobRangeOrPop" fallthroughContext="#pop#pop"> |
| 574 |
<IncludeRules context="FindGlobRangeThenPop"/> |
| 575 |
</context> |
| 576 |
<context attribute="Path" lineEndContext="#pop" name="PathMaybeBraceExpansion"> |
| 577 |
<IncludeRules context="DispatchPathBraceExpansion"/> |
| 578 |
<DetectChar attribute="Path" context="#pop!PathRecBrace" char="{"/> |
| 579 |
</context> |
| 580 |
<context attribute="Path" lineEndContext="#pop" name="PathMaybeGroupEnd"> |
| 581 |
<IncludeRules context="FindNoGroupEndThenPop"/> |
| 582 |
<DetectChar context="#pop#pop#pop" char="}" lookAhead="1"/> |
| 583 |
</context> |
| 584 |
<context attribute="Glob" lineEndContext="#stay" name="FindGlobRangeThenPop"> |
| 585 |
<RegExpr attribute="Glob" context="#pop!InGlobRange" String="<(?=[0-9]*-[0-9]*>)"/> |
| 586 |
</context> |
| 587 |
<context attribute="Number" lineEndContext="#stay" name="InGlobRange"> |
| 588 |
<AnyChar attribute="Number" context="#stay" String="0123456789"/> |
| 589 |
<DetectChar attribute="Glob" context="#stay" char="-"/> |
| 590 |
<DetectChar attribute="Glob" context="#pop" char=">"/> |
| 591 |
</context> |
| 592 |
|
| 593 |
<!-- FindPathThenPopInAlternateValue consumes path in ${xx:here}--> |
| 594 |
<context attribute="Normal Text" lineEndContext="#pop" name="FindPathThenPopInAlternateValue"> |
| 595 |
<AnyChar attribute="Glob" context="PathThenPopInAlternateValue" String="&simpleglob;|"/> |
| 596 |
<Detect2Chars context="PathThenPopInAlternateValue" char="(" char1="#" lookAhead="1"/> |
| 597 |
<AnyChar context="PathThenPopInAlternateValue" String="[(" lookAhead="1"/> |
| 598 |
<RegExpr attribute="Path" context="PathThenPopInAlternateValue" String="&pathpart;"/> |
| 599 |
</context> |
| 600 |
<context attribute="Path" lineEndContext="#pop" name="PathThenPopInAlternateValue"> |
| 601 |
<AnyChar context="#pop" String="&wordseps_or_extglog;}" lookAhead="1"/> |
| 602 |
<IncludeRules context="IncPath"/> |
| 603 |
<DetectIdentifier/> |
| 604 |
</context> |
| 605 |
|
| 606 |
<context attribute="Glob" lineEndContext="#stay" name="FindGlobAny"> |
| 607 |
<DetectChar attribute="Glob" context="GlobAnyFlag" char="["/> |
| 608 |
</context> |
| 609 |
<context attribute="String SingleQ" lineEndContext="#pop" name="GlobAnyFlag" fallthroughContext="#pop!GlobAny"> |
| 610 |
<DetectChar attribute="Glob Flag" context="#pop!GlobAny" char="^"/> |
| 611 |
</context> |
| 612 |
<context attribute="String SingleQ" lineEndContext="#pop" name="GlobAny"> |
| 613 |
<DetectIdentifier attribute="String SingleQ"/> |
| 614 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 615 |
<DetectChar attribute="Glob Flag" context="#stay" char="-"/> |
| 616 |
<IncludeRules context="FindStrings"/> |
| 617 |
<DetectChar attribute="Glob" context="#pop" char="]"/> |
| 618 |
<Detect2Chars attribute="Glob" context="GlobClass" char="[" char1=":"/> |
| 619 |
</context> |
| 620 |
<context attribute="Glob" lineEndContext="#pop#pop" name="GlobClass"> |
| 621 |
<DetectIdentifier attribute="Pattern"/> |
| 622 |
<Detect2Chars attribute="Glob" context="#pop" char=":" char1="]"/> |
| 623 |
<DetectChar attribute="Error" context="#pop" char="]"/> |
| 624 |
</context> |
| 625 |
|
| 626 |
<context attribute="Pattern" lineEndContext="#stay" name="FindSingleGlob"> |
| 627 |
<AnyChar attribute="Glob" context="#stay" String="&simpleglob;"/> |
| 628 |
</context> |
| 629 |
|
| 630 |
<context attribute="Pattern" lineEndContext="#stay" name="FindGlobPattern"> |
| 631 |
<AnyChar attribute="Glob" context="#stay" String="&simpleglob;|"/> |
| 632 |
<IncludeRules context="FindGlobAny"/> |
| 633 |
<IncludeRules context="FindGroupPattern"/> |
| 634 |
</context> |
| 635 |
|
| 636 |
<context attribute="Pattern" lineEndContext="#stay" name="FindPattern"> |
| 637 |
<IncludeRules context="FindGlobPattern"/> |
| 638 |
<DetectChar context="GlobRangeOrError" char="<" lookAhead="1"/> |
| 639 |
</context> |
| 640 |
<context attribute="Glob" lineEndContext="#stay" name="GlobRangeOrError"> |
| 641 |
<IncludeRules context="FindGlobRangeThenPop"/> |
| 642 |
<DetectChar attribute="Error" context="#pop" char="<"/> |
| 643 |
</context> |
| 644 |
|
| 645 |
<context attribute="Pattern" lineEndContext="#stay" name="FindSubPattern"> |
| 646 |
<IncludeRules context="FindGlobPattern"/> |
| 647 |
<DetectChar context="GlobRangeOrPattern" char="<" lookAhead="1"/> |
| 648 |
</context> |
| 649 |
<context attribute="Pattern" lineEndContext="#stay" name="GlobRangeOrPattern"> |
| 650 |
<IncludeRules context="FindGlobRangeThenPop"/> |
| 651 |
<DetectChar attribute="Pattern" context="#pop" char="<"/> |
| 652 |
</context> |
| 653 |
|
| 654 |
<context attribute="Pattern" lineEndContext="#stay" name="FindStringDQPattern"> |
| 655 |
<IncludeRules context="FindGlobPattern"/> |
| 656 |
<DetectChar context="GlobRangeOrStringDQ" char="<" lookAhead="1"/> |
| 657 |
</context> |
| 658 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="GlobRangeOrStringDQ"> |
| 659 |
<IncludeRules context="FindGlobRangeThenPop"/> |
| 660 |
<DetectChar attribute="String DoubleQ" context="#pop" char="<"/> |
| 661 |
</context> |
| 662 |
|
| 663 |
<context attribute="Glob Flag" lineEndContext="#stay" name="FindGroupPattern"> |
| 664 |
<Detect2Chars attribute="Glob Flag" context="GlobPatFlag" char="(" char1="#"/> |
| 665 |
<DetectChar attribute="Glob" context="ExtGlobPattern" char="("/> |
| 666 |
</context> |
| 667 |
<context attribute="Pattern" lineEndContext="#stay" name="ExtGlobPattern"> |
| 668 |
<DetectChar attribute="Glob" context="#pop" char=")"/> |
| 669 |
<IncludeRules context="FindWord"/> |
| 670 |
<IncludeRules context="FindSubPattern"/> |
| 671 |
<DetectIdentifier attribute="Pattern"/> |
| 672 |
</context> |
| 673 |
<context attribute="Pattern" lineEndContext="#stay" name="ExtGlobPatternThenPath"> |
| 674 |
<DetectChar attribute="Glob" context="#pop!PathThenPop" char=")"/> |
| 675 |
<IncludeRules context="FindWord"/> |
| 676 |
<IncludeRules context="FindSubPattern"/> |
| 677 |
<DetectIdentifier attribute="Pattern"/> |
| 678 |
</context> |
| 679 |
|
| 680 |
<context attribute="Normal Text" lineEndContext="#pop" name="VarAssign" fallthroughContext="#pop"> |
| 681 |
<DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> |
| 682 |
<DetectChar attribute="Operator" context="#pop!Assign" char="="/> |
| 683 |
<Detect2Chars attribute="Operator" context="#pop!Assign" char="+" char1="="/> |
| 684 |
</context> |
| 685 |
|
| 686 |
<context attribute="Normal Text" lineEndContext="#pop" name="DispatchKeyword"> |
| 687 |
<!-- match do and if blocks --> |
| 688 |
<Detect2Chars attribute="Control Flow" context="#pop!NotCond" char="i" char1="f" beginRegion="if"/> |
| 689 |
<Detect2Chars attribute="Control Flow" context="#pop" char="f" char1="i" endRegion="if"/> |
| 690 |
<StringDetect attribute="Control Flow" context="#pop" String="done" endRegion="do"/> |
| 691 |
<Detect2Chars attribute="Control Flow" context="#pop" char="d" char1="o" beginRegion="do"/> |
| 692 |
<!-- handle while/until as a special case --> |
| 693 |
<StringDetect attribute="Control Flow" context="#pop!NotCond" String="while"/> |
| 694 |
<StringDetect attribute="Control Flow" context="#pop!NotCond" String="until"/> |
| 695 |
<!-- handle for as a special case --> |
| 696 |
<StringDetect attribute="Control Flow" context="#pop!Foreach" String="foreach"/> |
| 697 |
<StringDetect attribute="Control Flow" context="#pop!For" String="for"/> |
| 698 |
<!-- handle select as a special case --> |
| 699 |
<StringDetect attribute="Control Flow" context="#pop!Select" String="select"/> |
| 700 |
<StringDetect attribute="Control Flow" context="#pop!Repeat" String="repeat"/> |
| 701 |
<!-- handle case as a special case --> |
| 702 |
<StringDetect attribute="Control Flow" context="#pop!Case" String="case" beginRegion="case"/> |
| 703 |
<!-- handle functions with function keyword before keywords --> |
| 704 |
<StringDetect attribute="Keyword" context="#pop!FunctionDef" String="function"/> |
| 705 |
<StringDetect attribute="Control Flow" context="#pop!Return" String="return"/> |
| 706 |
<!-- not a keyword in this context --> |
| 707 |
<Detect2Chars attribute="Error" context="#pop" char="i" char1="n"/> |
| 708 |
<StringDetect attribute="Error" context="#pop" String="esac"/> |
| 709 |
<!-- handle keywords --> |
| 710 |
<DetectIdentifier attribute="Control Flow" context="#pop"/> |
| 711 |
</context> |
| 712 |
|
| 713 |
<!-- if ! ... and while ! ... --> |
| 714 |
<context attribute="Normal Text" lineEndContext="#pop" name="NotCond" fallthroughContext="#pop"> |
| 715 |
<DetectSpaces attribute="Normal Text" context="#pop!NotCond2"/> |
| 716 |
</context> |
| 717 |
<context attribute="Normal Text" lineEndContext="#pop" name="NotCond2" fallthroughContext="#pop"> |
| 718 |
<Detect2Chars attribute="Expression" context="#pop" char="!" char1="&tab;"/> |
| 719 |
<Detect2Chars attribute="Expression" context="#pop" char="!" char1=" "/> |
| 720 |
<LineContinue attribute="Expression" context="#pop" char="!"/> |
| 721 |
</context> |
| 722 |
|
| 723 |
<context attribute="Normal Text" lineEndContext="#pop" name="Foreach" fallthroughContext="#pop"> |
| 724 |
<LineContinue attribute="Escape" context="#stay"/> |
| 725 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 726 |
<DetectIdentifier attribute="Normal Text" context="#stay"/> |
| 727 |
<DetectChar attribute="Keyword" context="#pop!ForeachWord" char="("/> |
| 728 |
</context> |
| 729 |
<context attribute="Normal Text" lineEndContext="#stay" name="ForeachWord" fallthroughContext="NormalOption"> |
| 730 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 731 |
<DetectChar attribute="Control" context="#stay" char=";"/> |
| 732 |
<DetectChar attribute="Keyword" context="#pop" char=")"/> |
| 733 |
<DetectChar attribute="Backquote" context="CommandBackq" char="`"/> |
| 734 |
<AnyChar attribute="Control" context="#stay" String="&symbolseps;"/> |
| 735 |
</context> |
| 736 |
|
| 737 |
<context attribute="Normal Text" lineEndContext="#pop" name="For" fallthroughContext="#pop"> |
| 738 |
<LineContinue attribute="Escape" context="#stay"/> |
| 739 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 740 |
<WordDetect attribute="Keyword" context="#pop!CommandArgs" String="in"/> |
| 741 |
<DetectIdentifier attribute="Normal Text" context="#stay"/> |
| 742 |
<Detect2Chars attribute="Keyword" context="#pop!ForArithmeticExpr" char="(" char1="("/> |
| 743 |
<DetectChar attribute="Keyword" context="#pop!ForeachWord" char="("/> |
| 744 |
</context> |
| 745 |
<context attribute="Normal Text" lineEndContext="#pop" name="ForArithmeticExpr"> |
| 746 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 747 |
<DetectChar attribute="Control" context="#stay" char=";"/> |
| 748 |
<Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")"/> |
| 749 |
<IncludeRules context="FindExprDblParen"/> |
| 750 |
</context> |
| 751 |
|
| 752 |
<context attribute="Normal Text" lineEndContext="#pop" name="Select" fallthroughContext="#pop"> |
| 753 |
<LineContinue attribute="Escape" context="#stay"/> |
| 754 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 755 |
<DetectIdentifier attribute="Normal Text" context="#pop!SelectIn"/> |
| 756 |
</context> |
| 757 |
<context attribute="Normal Text" lineEndContext="#pop" name="SelectIn" fallthroughContext="#pop"> |
| 758 |
<LineContinue attribute="Escape" context="#stay"/> |
| 759 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 760 |
<WordDetect attribute="Keyword" context="#pop!CommandArgs" String="in"/> |
| 761 |
</context> |
| 762 |
|
| 763 |
<context attribute="Normal Text" lineEndContext="#pop" name="Repeat" fallthroughContext="#pop!RepeatArithmeticExpr"> |
| 764 |
<LineContinue attribute="Escape" context="#stay"/> |
| 765 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 766 |
</context> |
| 767 |
<context attribute="Normal Text" lineEndContext="#pop" name="RepeatArithmeticExpr"> |
| 768 |
<DetectSpaces attribute="Normal Text" context="#pop"/> |
| 769 |
<DetectChar attribute="Control" context="#pop" char=";"/> |
| 770 |
<IncludeRules context="FindExprDblParen"/> |
| 771 |
</context> |
| 772 |
|
| 773 |
<!-- &> and &>> redirection --> |
| 774 |
<context attribute="Normal Text" lineEndContext="#pop" name="Prefix&>" fallthroughContext="#pop!FdRedirection"> |
| 775 |
<Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1="|"/> |
| 776 |
<Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1="!"/> |
| 777 |
<AnyChar attribute="Redirection" context="#pop!WordRedirection" String=">|!"/> |
| 778 |
</context> |
| 779 |
|
| 780 |
<context attribute="Normal Text" lineEndContext="#pop" name="AssumeRedirection"> |
| 781 |
<!-- handle output redirection --> |
| 782 |
<StringDetect attribute="Redirection" context="#pop!WordRedirection" String=">>|"/> |
| 783 |
<StringDetect attribute="Redirection" context="#pop!WordRedirection" String=">>!"/> |
| 784 |
<StringDetect attribute="Redirection" context="#pop!WordRedirection" String=">>&|"/> |
| 785 |
<StringDetect attribute="Redirection" context="#pop!WordRedirection" String=">>&!"/> |
| 786 |
<StringDetect attribute="Redirection" context="#pop!ProcessSubst" String=">>("/> |
| 787 |
<Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1=">"/> |
| 788 |
<Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1="|"/> |
| 789 |
<Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char=">" char1="!"/> |
| 790 |
<StringDetect attribute="Redirection" context="#pop!WordRedirection" String=">&|"/> |
| 791 |
<StringDetect attribute="Redirection" context="#pop!WordRedirection" String=">&!"/> |
| 792 |
<Detect2Chars attribute="Redirection" context="#pop!FdRedirection" char=">" char1="&"/> |
| 793 |
<Detect2Chars attribute="Redirection" context="#pop!ProcessSubst" char=">" char1="("/> |
| 794 |
<DetectChar attribute="Redirection" context="#pop!WordRedirection" char=">"/> |
| 795 |
<!-- handle input redirection --> |
| 796 |
<Detect2Chars attribute="Redirection" context="#pop!ProcessSubst" char="<" char1="("/> |
| 797 |
<StringDetect attribute="Redirection" context="#pop!ProcessSubst" String="<<("/> |
| 798 |
<StringDetect attribute="Redirection" context="#pop!StringRedirection" String="<<<"/> |
| 799 |
<!-- handle here document --> |
| 800 |
<Detect2Chars context="#pop!HereDoc" char="<" char1="<" lookAhead="1"/> |
| 801 |
<Detect2Chars attribute="Redirection" context="#pop!FdRedirection" char="<" char1="&"/> |
| 802 |
<Detect2Chars attribute="Redirection" context="#pop!WordRedirection" char="<" char1=">"/> |
| 803 |
<IncludeRules context="FindGlobRangeThenPop"/> |
| 804 |
<DetectChar attribute="Redirection" context="#pop!WordRedirection" char="<"/> |
| 805 |
</context> |
| 806 |
<context attribute="Normal Text" lineEndContext="#pop" name="FdRedirection" fallthroughContext="#pop!FdRedirection2"> |
| 807 |
<DetectSpaces attribute="Normal Text" context="#pop!FdRedirection2"/> |
| 808 |
</context> |
| 809 |
<context attribute="Normal Text" lineEndContext="#pop" name="FdRedirection2" fallthroughContext="#pop!WordRedirection2"> |
| 810 |
<RegExpr attribute="File Descriptor" context="#pop!CloseFile" String="[0-9]+(?=-?&eoexpr;)"/> |
| 811 |
</context> |
| 812 |
<context attribute="Normal Text" lineEndContext="#pop" name="WordRedirection" fallthroughContext="#pop!WordRedirection2"> |
| 813 |
<DetectSpaces attribute="Normal Text" context="#pop!WordRedirection2"/> |
| 814 |
</context> |
| 815 |
<context attribute="Normal Text" lineEndContext="#pop" name="WordRedirection2" fallthroughContext="#pop"> |
| 816 |
<AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> |
| 817 |
<IncludeRules context="FindWord"/> |
| 818 |
<RegExpr attribute="Path" context="PathThenPop" String="&path;"/> |
| 819 |
</context> |
| 820 |
<context attribute="Normal Text" lineEndContext="#pop" name="StringRedirection" fallthroughContext="#pop!StringRedirection2"> |
| 821 |
<DetectSpaces attribute="Normal Text" context="#pop!StringRedirection2"/> |
| 822 |
</context> |
| 823 |
<context attribute="Normal Text" lineEndContext="#pop" name="StringRedirection2"> |
| 824 |
<AnyChar context="#pop" String="&wordseps;`" lookAhead="1"/> |
| 825 |
<IncludeRules context="FindWord"/> |
| 826 |
<DetectIdentifier attribute="Normal Text"/> |
| 827 |
</context> |
| 828 |
<context attribute="Normal Text" lineEndContext="#pop" name="CloseFile" fallthroughContext="#pop"> |
| 829 |
<DetectChar attribute="Keyword" context="#pop" char="-"/> |
| 830 |
</context> |
| 831 |
|
| 832 |
<!-- HereDoc consumes Here-documents. It is called at the beginning of the "<<" construct. --> |
| 833 |
<context attribute="Normal Text" lineEndContext="#stay" name="HereDoc"> |
| 834 |
<RegExpr attribute="Redirection" context="HereDocIQ" String="<<-[ &tab;]*&heredocq;(?=[ &tab;]*$)"/> |
| 835 |
<RegExpr attribute="Redirection" context="HereDocINQ" String="<<-[ &tab;]*([^&wordseps;]+)(?=[ &tab;]*$)"/> |
| 836 |
<RegExpr attribute="Redirection" context="HereDocQ" String="<<[ &tab;]*&heredocq;(?=[ &tab;]*$)"/> |
| 837 |
<RegExpr attribute="Redirection" context="HereDocNQ" String="<<[ &tab;]*([^&wordseps;]+)(?=[ &tab;]*$)"/> |
| 838 |
|
| 839 |
<RegExpr context="HereDocIQCmd" String="(<<-[ &tab;]*&heredocq;)" lookAhead="1"/> |
| 840 |
<RegExpr context="HereDocINQCmd" String="(<<-[ &tab;]*([^&wordseps;]+))" lookAhead="1"/> |
| 841 |
<RegExpr context="HereDocQCmd" String="(<<[ &tab;]*&heredocq;)" lookAhead="1"/> |
| 842 |
<RegExpr context="HereDocNQCmd" String="(<<[ &tab;]*([^&wordseps;]+))" lookAhead="1"/> |
| 843 |
|
| 844 |
<Detect2Chars attribute="Redirection" context="#pop" char="<" char1="<"/><!-- always met --> |
| 845 |
</context> |
| 846 |
|
| 847 |
<context attribute="Normal Text" lineEndContext="#pop" name="HereDocRemainder" fallthroughContext="Command"> |
| 848 |
<IncludeRules context="Start"/> |
| 849 |
</context> |
| 850 |
|
| 851 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocQ" dynamic="1" fallthroughContext="HereDocText"> |
| 852 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^%1$" dynamic="1" column="0"/> |
| 853 |
</context> |
| 854 |
|
| 855 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocNQ" dynamic="1" fallthroughContext="HereDocSubstitutions"> |
| 856 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^%1$" dynamic="1" column="0"/> |
| 857 |
</context> |
| 858 |
|
| 859 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocIQ" dynamic="1" fallthroughContext="HereDocText"> |
| 860 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%1$" dynamic="1" column="0"/> |
| 861 |
</context> |
| 862 |
|
| 863 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocINQ" dynamic="1" fallthroughContext="HereDocSubstitutions"> |
| 864 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%1$" dynamic="1" column="0"/> |
| 865 |
</context> |
| 866 |
|
| 867 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocQCmd" dynamic="1" fallthroughContext="HereDocText"> |
| 868 |
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="1"/> |
| 869 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^%2$" dynamic="1" column="0"/> |
| 870 |
</context> |
| 871 |
|
| 872 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocNQCmd" dynamic="1" fallthroughContext="HereDocSubstitutions"> |
| 873 |
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="1"/> |
| 874 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^%2$" dynamic="1" column="0"/> |
| 875 |
</context> |
| 876 |
|
| 877 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocIQCmd" dynamic="1" fallthroughContext="HereDocText"> |
| 878 |
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="1"/> |
| 879 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2$" dynamic="1" column="0"/> |
| 880 |
</context> |
| 881 |
|
| 882 |
<context attribute="Here Doc" lineEndContext="#stay" name="HereDocINQCmd" dynamic="1" fallthroughContext="HereDocSubstitutions"> |
| 883 |
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="1"/> |
| 884 |
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2$" dynamic="1" column="0"/> |
| 885 |
</context> |
| 886 |
|
| 887 |
<context attribute="Here Doc" lineEndContext="#pop" name="HereDocText"> |
| 888 |
</context> |
| 889 |
|
| 890 |
<context attribute="Here Doc" lineEndContext="#pop" name="HereDocSubstitutions"> |
| 891 |
<DetectSpaces attribute="Here Doc"/> |
| 892 |
<DetectIdentifier attribute="Here Doc"/> |
| 893 |
<DetectChar context="HereDocVariables" char="$" lookAhead="1"/> |
| 894 |
<DetectChar attribute="Backquote" context="CommandBackq" char="`"/> |
| 895 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 896 |
</context> |
| 897 |
<context attribute="Here Doc" lineEndContext="#pop" name="HereDocVariables"> |
| 898 |
<IncludeRules context="DispatchSubstVariables"/> |
| 899 |
<IncludeRules context="DispatchVarNameVariables"/> |
| 900 |
<DetectChar attribute="Here Doc" context="#pop" char="$"/> |
| 901 |
</context> |
| 902 |
|
| 903 |
<!-- VarName consumes spare variable names and assignments --> |
| 904 |
<context attribute="Normal Text" lineEndContext="#pop" name="VarName"> |
| 905 |
<StringDetect attribute="Builtin" context="#pop!BuiltinGetopts" String="getopts"/> |
| 906 |
<StringDetect attribute="Builtin" context="#pop!BuiltinLet" String="let"/> |
| 907 |
<DetectIdentifier attribute="Builtin" context="#pop!VarNameArgs"/> |
| 908 |
<AnyChar attribute="Builtin" context="#pop!VarNameArgs" String=".:-"/> |
| 909 |
</context> |
| 910 |
<context attribute="Normal Text" lineEndContext="#pop" name="VarNameArgs" fallthroughContext="#pop!CommandArgs"> |
| 911 |
<DetectSpaces attribute="Normal Text" context="VarNameArg"/> |
| 912 |
<LineContinue attribute="Escape" context="#stay"/> |
| 913 |
</context> |
| 914 |
<context attribute="Normal Text" lineEndContext="#pop#pop" name="VarNameArg" fallthroughContext="#pop!VarNameArg2"> |
| 915 |
<!-- In command arguments, do not allow comments after escaped characters. |
| 916 |
This avoids highlighting comments within paths or other text. Ex: pathtext\ #no\ comment --> |
| 917 |
<DetectChar context="#pop#pop" char="#" lookAhead="1"/> |
| 918 |
<AnyChar attribute="Option" context="#pop!ShortOption" String="-+"/> |
| 919 |
<DetectChar attribute="Keyword" context="#pop!VarNameArg2" char="="/> |
| 920 |
</context> |
| 921 |
<context attribute="Normal Text" lineEndContext="#pop" name="VarNameArg2" fallthroughContext="#pop!NormalOption"> |
| 922 |
<DetectChar attribute="Variable" context="Subscript" char="["/> |
| 923 |
<DetectChar attribute="Operator" context="Assign" char="="/> |
| 924 |
<DetectChar attribute="Variable" context="AssignArray" char="("/> |
| 925 |
<DetectIdentifier attribute="Variable" context="#stay"/> |
| 926 |
</context> |
| 927 |
<context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetopts" fallthroughContext="#pop!CommandArgs"> |
| 928 |
<DetectSpaces attribute="Normal Text" context="#pop!BuiltinGetoptsOpt"/> |
| 929 |
<LineContinue attribute="Escape" context="#stay"/> |
| 930 |
</context> |
| 931 |
<context attribute="Normal Text" lineEndContext="#pop#pop" name="BuiltinGetoptsOpt" fallthroughContext="#pop!BuiltinGetoptsOpt2"> |
| 932 |
<DetectChar context="#pop#pop" char="#" lookAhead="1"/> |
| 933 |
<DetectChar attribute="Keyword" context="#pop!NormalOption" char="="/> |
| 934 |
</context> |
| 935 |
<context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetoptsOpt2" fallthroughContext="#pop!NormalOption"> |
| 936 |
<DetectChar attribute="Operator" context="#stay" char=":"/> |
| 937 |
<DetectIdentifier attribute="Normal Text" context="#stay" /> |
| 938 |
<DetectSpaces attribute="Normal Text" context="#pop!BuiltinGetoptsVar"/> |
| 939 |
<AnyChar context="#pop" String="&wordseps_or_extglog;" lookAhead="1"/> |
| 940 |
<IncludeRules context="FindWord"/> |
| 941 |
<DetectChar context="NormalOptionMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 942 |
<DetectChar context="NormalOptionMaybeGroupEnd" char="}" lookAhead="1"/> |
| 943 |
<AnyChar attribute="Normal Text" context="#stay" String="/%.0123456789"/> |
| 944 |
</context> |
| 945 |
<context attribute="Normal Text" lineEndContext="#pop" name="BuiltinGetoptsVar" fallthroughContext="#pop!CommandArgs"> |
| 946 |
<DetectIdentifier attribute="Variable" context="#pop!CommandArgs"/> |
| 947 |
</context> |
| 948 |
<context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLet" fallthroughContext="#pop!CommandArgs"> |
| 949 |
<DetectSpaces attribute="Normal Text" context="#pop!BuiltinLetArgs"/> |
| 950 |
<LineContinue attribute="Escape" context="#stay"/> |
| 951 |
</context> |
| 952 |
<context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetArgs" fallthroughContext="BuiltinLetArg"> |
| 953 |
<AnyChar context="BuiltinLetArgsNumber" String="0123456789" lookAhead="1"/> |
| 954 |
<IncludeRules context="CommandArgs"/> |
| 955 |
</context> |
| 956 |
<context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetArgsNumber" fallthroughContext="#pop!BuiltinLetArg"> |
| 957 |
<IncludeRules context="FindRedirection"/> |
| 958 |
</context> |
| 959 |
<context attribute="Normal Text" lineEndContext="#pop#pop" name="BuiltinLetArg" fallthroughContext="#pop!BuiltinLetExpr"> |
| 960 |
<DetectChar context="#pop#pop" char="#" lookAhead="1"/> |
| 961 |
<DetectChar attribute="Keyword" context="#pop!NormalOption" char="="/> |
| 962 |
</context> |
| 963 |
<context attribute="Normal Text" lineEndContext="#pop" name="BuiltinLetExpr" fallthroughContext="#pop!NormalOption"> |
| 964 |
<DetectIdentifier attribute="Variable" context="#stay" /> |
| 965 |
<AnyChar context="#pop" String="&wordseps_or_extglog;" lookAhead="1"/> |
| 966 |
<AnyChar attribute="Operator" context="#stay" String="+-!%=^:"/> |
| 967 |
<AnyChar context="Number" String="0123456789." lookAhead="1"/> |
| 968 |
<DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> |
| 969 |
<IncludeRules context="FindWord"/> |
| 970 |
<Detect2Chars attribute="BaseN" context="NoPrefix" char="#" char1="#"/> |
| 971 |
<DetectChar attribute="Error" context="#stay" char="#"/> |
| 972 |
<DetectChar context="NormalOptionMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 973 |
<DetectChar context="NormalOptionMaybeGroupEnd" char="}" lookAhead="1"/> |
| 974 |
</context> |
| 975 |
|
| 976 |
<!-- ProcessSubst handles <(command) and >(command) --> |
| 977 |
<context attribute="Normal Text" lineEndContext="#stay" name="ProcessSubst" fallthroughContext="Command"> |
| 978 |
<DetectChar attribute="Redirection" context="#pop" char=")"/> |
| 979 |
<IncludeRules context="Start"/> |
| 980 |
</context> |
| 981 |
|
| 982 |
<!-- StringSQ consumes anything till ' --> |
| 983 |
<context attribute="String SingleQ" lineEndContext="#stay" name="StringSQ"> |
| 984 |
<DetectSpaces attribute="String SingleQ"/> |
| 985 |
<DetectIdentifier attribute="String SingleQ"/> |
| 986 |
<DetectChar attribute="String SingleQ" context="#pop" char="'"/> |
| 987 |
</context> |
| 988 |
|
| 989 |
<!-- StringDQ consumes anything till ", substitutes vars and expressions --> |
| 990 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="StringDQ"> |
| 991 |
<DetectSpaces attribute="String DoubleQ"/> |
| 992 |
<DetectIdentifier attribute="String DoubleQ"/> |
| 993 |
<DetectChar attribute="String DoubleQ" context="#pop" char="""/> |
| 994 |
<DetectChar context="StringDQEscape" char="\" lookAhead="1"/> |
| 995 |
<DetectChar context="StringDQDispatchVariables" char="$" lookAhead="1"/> |
| 996 |
<DetectChar attribute="Backquote" context="RegularBackq" char="`"/> |
| 997 |
</context> |
| 998 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="StringDQDispatchVariables"> |
| 999 |
<IncludeRules context="DispatchSubstVariables"/> |
| 1000 |
<IncludeRules context="DispatchVarNameVariables"/> |
| 1001 |
<DetectChar attribute="String DoubleQ" context="#pop" char="$"/> |
| 1002 |
</context> |
| 1003 |
<context attribute="String DoubleQ" lineEndContext="#pop" name="StringDQEscape"> |
| 1004 |
<Detect2Chars attribute="String Escape" context="#pop" char="\" char1="""/> |
| 1005 |
<Detect2Chars attribute="String Escape" context="#pop" char="\" char1="\"/> |
| 1006 |
<Detect2Chars attribute="String Escape" context="#pop" char="\" char1="`"/> |
| 1007 |
<Detect2Chars attribute="String Escape" context="#pop" char="\" char1="$"/> |
| 1008 |
<LineContinue attribute="String Escape" context="#pop"/> |
| 1009 |
<DetectChar attribute="String DoubleQ" context="#pop" char="\"/> |
| 1010 |
</context> |
| 1011 |
|
| 1012 |
<!-- RegularBackq consumes anything till ` --> |
| 1013 |
<context attribute="Normal Text" lineEndContext="#stay" name="RegularBackq" fallthroughContext="Command"> |
| 1014 |
<DetectChar attribute="Backquote" context="#pop" char="`"/> |
| 1015 |
<DetectChar attribute="Comment" context="CommentBackq" char="#"/> |
| 1016 |
<IncludeRules context="Start"/> |
| 1017 |
</context> |
| 1018 |
|
| 1019 |
<!-- StringEsc eats till ', but escaping many characters --> |
| 1020 |
<context attribute="String SingleQ" lineEndContext="#stay" name="StringEsc"> |
| 1021 |
<DetectSpaces attribute="String SingleQ"/> |
| 1022 |
<DetectIdentifier attribute="String SingleQ"/> |
| 1023 |
<DetectChar attribute="String SingleQ" context="#pop" char="'"/> |
| 1024 |
<RegExpr attribute="String Escape" context="#stay" String="\\(?:[abefnrtv\\']|[0-7]{1,3}|x[A-Fa-f0-9]{1,2}|c.)"/> |
| 1025 |
</context> |
| 1026 |
|
| 1027 |
<context attribute="Normal Text" lineEndContext="#stay" name="FindWord"> |
| 1028 |
<IncludeRules context="FindStrings"/> |
| 1029 |
<DetectChar context="RegularVariable" char="$" lookAhead="1"/> |
| 1030 |
<DetectChar attribute="Backquote" context="RegularBackq" char="`"/> |
| 1031 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1032 |
</context> |
| 1033 |
<context attribute="Normal Text" lineEndContext="#pop" name="RegularVariable"> |
| 1034 |
<IncludeRules context="DispatchVariables"/> |
| 1035 |
<DetectChar attribute="Normal Text" context="#pop" char="$"/> |
| 1036 |
</context> |
| 1037 |
|
| 1038 |
<context attribute="Normal Text" lineEndContext="#pop" name="FindStrings"> |
| 1039 |
<DetectChar attribute="String SingleQ" context="StringSQ" char="'"/> |
| 1040 |
<DetectChar attribute="String DoubleQ" context="StringDQ" char="""/> |
| 1041 |
</context> |
| 1042 |
|
| 1043 |
<!-- SubstCommand is called after a $( is encountered --> |
| 1044 |
<context attribute="Normal Text" lineEndContext="#stay" name="SubstCommand" fallthroughContext="Command"> |
| 1045 |
<DetectChar attribute="Parameter Expansion" context="#pop" char=")" endRegion="subshell"/> |
| 1046 |
<IncludeRules context="Start"/> |
| 1047 |
</context> |
| 1048 |
|
| 1049 |
<!-- VarBraceStart is called as soon as ${ is encoutered --> |
| 1050 |
<context attribute="Variable" lineEndContext="#pop" name="VarBraceStart" fallthroughContext="#pop!CheckVarAlt"> |
| 1051 |
<DetectChar attribute="Parameter Expansion" context="#pop!VarFlags" char="("/> |
| 1052 |
<IncludeRules context="VarFlagsVar"/> |
| 1053 |
</context> |
| 1054 |
<context attribute="Variable" lineEndContext="#stay" name="VarBraceStartRecursive" fallthroughContext="#pop#pop!CheckVarAlt"> |
| 1055 |
<Detect2Chars attribute="Parameter Expansion" context="VarBraceStart" char="$" char1="{"/> |
| 1056 |
<StringDetect context="#pop!ExprDblParenSubstOrSubstCommand" String="$((" lookAhead="1"/> |
| 1057 |
<Detect2Chars attribute="Parameter Expansion" context="#pop!SubstCommand" char="$" char1="(" beginRegion="subshell"/> |
| 1058 |
<DetectChar attribute="Error" context="#pop" char="$"/> |
| 1059 |
</context> |
| 1060 |
<context attribute="Error" lineEndContext="#stay" name="VarError"> |
| 1061 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1062 |
</context> |
| 1063 |
<context attribute="Normal Text" lineEndContext="#stay" name="CheckVarAlt" fallthroughContext="#pop!VarError"> |
| 1064 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1065 |
<StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[@]"/> |
| 1066 |
<StringDetect attribute="Parameter Expansion Operator" context="#stay" String="[*]"/> |
| 1067 |
<DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> |
| 1068 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" char="%" char1="%"/> |
| 1069 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" char="#" char1="#"/> |
| 1070 |
<AnyChar attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" String="#%"/> |
| 1071 |
<AnyChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" String="-+=?"/> |
| 1072 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!AlternateValuePrefix" char=":"/> |
| 1073 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarBraceSubst" char="/" char1="/"/> |
| 1074 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBraceSubst" char="/"/> |
| 1075 |
</context> |
| 1076 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="AlternateValuePrefix" fallthroughContext="#pop!VarSub"> |
| 1077 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="^" char1="^"/> |
| 1078 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!AlternatePatternValue" char="#"/> |
| 1079 |
<AnyChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" String="-+=?|*^"/> |
| 1080 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char=":" char1="="/> |
| 1081 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBraceSubst" char="/"/> |
| 1082 |
|
| 1083 |
<!-- Modifiers --> |
| 1084 |
<AnyChar attribute="Parameter Expansion" context="#pop!VarBraceModifiers" String="aAcehlpPqQrsg&tux" lookAhead="1"/> |
| 1085 |
</context> |
| 1086 |
|
| 1087 |
<!-- called as soon as ${xxx:y (with y a modifier) is encoutered --> |
| 1088 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarBraceModifiers"> |
| 1089 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1090 |
<DetectChar attribute="Parameter Expansion Operator" context="#stay" char=":"/> |
| 1091 |
<AnyChar attribute="Parameter Expansion" context="VarBraceModifier_h" String="ht"/> |
| 1092 |
<DetectChar attribute="Parameter Expansion" context="VarBraceModifier_s" char="s"/> |
| 1093 |
<Detect2Chars attribute="Parameter Expansion" context="VarBraceModifier_s" char="g" char1="s"/> |
| 1094 |
</context> |
| 1095 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarBraceModifier_h" fallthroughContext="#pop"> |
| 1096 |
<AnyChar attribute="Number" context="#stay" String="0123456789"/> |
| 1097 |
</context> |
| 1098 |
|
| 1099 |
<!-- called as soon as ${xxx:s and ${xxx:gs is encoutered --> |
| 1100 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarBraceModifier_s"> |
| 1101 |
<DetectChar attribute="Error" context="#pop#pop" char="}"/> |
| 1102 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBraceModifier_s_Str" char="/"/> |
| 1103 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1104 |
</context> |
| 1105 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarBraceModifier_s_Str"> |
| 1106 |
<DetectChar attribute="Parameter Expansion" context="#pop#pop" char="}"/> |
| 1107 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarBraceModifier_s_Rep" char="/"/> |
| 1108 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1109 |
<DetectChar attribute="String SingleQ" context="RecursiveVarBraceModifier_s" char="{"/> |
| 1110 |
</context> |
| 1111 |
<context attribute="String SingleQ" lineEndContext="#stay" name="RecursiveVarBraceModifier_s"> |
| 1112 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1113 |
<DetectChar attribute="String SingleQ" context="#pop" char="}"/> |
| 1114 |
</context> |
| 1115 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarBraceModifier_s_Rep"> |
| 1116 |
<DetectChar attribute="Parameter Expansion" context="#pop#pop" char="}"/> |
| 1117 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="/"/> |
| 1118 |
<DetectChar attribute="String SingleQ" context="RecursiveVarBraceModifier_s" char="{"/> |
| 1119 |
</context> |
| 1120 |
|
| 1121 |
<!-- called as soon as ${xxx: is encoutered --> |
| 1122 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarSub"> |
| 1123 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1124 |
<AnyChar context="VarOffset" String="0123456789" lookAhead="1"/> |
| 1125 |
<AnyChar attribute="Operator" context="#stay" String="+-!~*/%<>=&^|"/> |
| 1126 |
<DetectChar attribute="Parameter Expansion Operator" context="#stay" char=":"/> |
| 1127 |
<DetectChar context="VarVariables" char="$" lookAhead="1"/> |
| 1128 |
<IncludeRules context="FindStrings"/> |
| 1129 |
<DetectChar attribute="Backquote" context="RegularBackq" char="`"/> |
| 1130 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1131 |
</context> |
| 1132 |
<context attribute="Command" lineEndContext="#pop" name="VarVariables"> |
| 1133 |
<IncludeRules context="DispatchVariables"/> |
| 1134 |
<DetectChar attribute="Error" context="#pop" char="$"/> |
| 1135 |
</context> |
| 1136 |
<context attribute="Number" lineEndContext="#pop" name="VarOffset" fallthroughContext="#pop"> |
| 1137 |
<Detect2Chars attribute="Hex" context="#pop!Hex" char="0" char1="x"/> |
| 1138 |
<Detect2Chars attribute="Hex" context="#pop!Hex" char="0" char1="X"/> |
| 1139 |
<AnyChar attribute="Number" context="#stay" String="0123456789_"/> |
| 1140 |
<DetectChar attribute="Base" context="#stay" char="#"/> |
| 1141 |
</context> |
| 1142 |
|
| 1143 |
<!-- called as soon as ${xxx:-, etc are encoutered --> |
| 1144 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="AlternateValue"> |
| 1145 |
<DetectChar attribute="String DoubleQ" context="RecursiveAlternateValue" char="{"/> |
| 1146 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1147 |
<IncludeRules context="FindWord"/> |
| 1148 |
<IncludeRules context="FindPathThenPopInAlternateValue"/> |
| 1149 |
<DetectIdentifier attribute="String DoubleQ"/> |
| 1150 |
</context> |
| 1151 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="RecursiveAlternateValue"> |
| 1152 |
<DetectChar attribute="String DoubleQ" context="RecursiveAlternateValue" char="{"/> |
| 1153 |
<DetectChar attribute="String DoubleQ" context="#pop" char="}"/> |
| 1154 |
<IncludeRules context="FindWord"/> |
| 1155 |
<IncludeRules context="FindPathThenPopInAlternateValue"/> |
| 1156 |
<DetectIdentifier attribute="String DoubleQ"/> |
| 1157 |
</context> |
| 1158 |
|
| 1159 |
<!-- called as soon as ${xxx%, etc are encoutered --> |
| 1160 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="AlternatePatternValue"> |
| 1161 |
<DetectChar attribute="String DoubleQ" context="RecursiveAlternatePatternValue" char="{"/> |
| 1162 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1163 |
<IncludeRules context="FindWord"/> |
| 1164 |
<IncludeRules context="FindStringDQPattern"/> |
| 1165 |
<DetectIdentifier attribute="String DoubleQ"/> |
| 1166 |
</context> |
| 1167 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="RecursiveAlternatePatternValue"> |
| 1168 |
<DetectChar attribute="String DoubleQ" context="RecursiveAlternateValue" char="{"/> |
| 1169 |
<DetectChar attribute="String DoubleQ" context="#pop" char="}"/> |
| 1170 |
<IncludeRules context="FindWord"/> |
| 1171 |
<IncludeRules context="FindStringDQPattern"/> |
| 1172 |
<DetectIdentifier attribute="String DoubleQ"/> |
| 1173 |
</context> |
| 1174 |
|
| 1175 |
<!-- called as soon as ${xxx/ ${xxx// ${xxx:/ are encoutered --> |
| 1176 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarBraceSubst" fallthroughContext="#pop!VarBraceSubstPat"> |
| 1177 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarBraceSubstPat" char="#" char1="%"/> |
| 1178 |
<AnyChar attribute="Parameter Expansion Operator" context="#pop!VarBraceSubstPat" String="#%"/> |
| 1179 |
</context> |
| 1180 |
<context attribute="Pattern" lineEndContext="#stay" name="VarBraceSubstPat"> |
| 1181 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="/"/> |
| 1182 |
<DetectChar attribute="String DoubleQ" context="RecursiveAlternateValue" char="{"/> |
| 1183 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1184 |
<IncludeRules context="FindWord"/> |
| 1185 |
<IncludeRules context="FindSubPattern"/> |
| 1186 |
<DetectIdentifier attribute="Pattern"/> |
| 1187 |
</context> |
| 1188 |
|
| 1189 |
<!-- called as soon as ${( is encoutered --> |
| 1190 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarFlags"> |
| 1191 |
<AnyChar attribute="Parameter Expansion Operator" context="#stay" String="#%*q@AabcCDefFikLnoOPqQ+-tuUvVwWXz0~mSBEMNR"/> |
| 1192 |
<AnyChar attribute="Parameter Expansion Operator" context="VarFlag_s" String="sjgZ_"/> |
| 1193 |
<AnyChar attribute="Parameter Expansion Operator" context="VarFlag_l" String="lrI"/> |
| 1194 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlagsSubs" char="p"/> |
| 1195 |
|
| 1196 |
<DetectChar attribute="Parameter Expansion" context="#pop!VarFlagsVar" char=")"/> |
| 1197 |
<DetectChar attribute="Error" context="#pop" char="}"/> |
| 1198 |
</context> |
| 1199 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarFlagsSubs"> |
| 1200 |
<AnyChar attribute="Parameter Expansion Operator" context="#stay" String="#q@AabcCDefFikLnoOPqQ+-tuUvVwWXz0~mSBEMNRp"/> |
| 1201 |
<AnyChar attribute="Parameter Expansion Operator" context="VarFlag_s" String="gZ"/> |
| 1202 |
<AnyChar attribute="Parameter Expansion Operator" context="VarFlag_ps" String="sj_"/> |
| 1203 |
<AnyChar attribute="Parameter Expansion Operator" context="VarFlag_pl" String="lrI"/> |
| 1204 |
|
| 1205 |
<DetectChar attribute="Parameter Expansion" context="#pop!VarFlagsVar" char=")"/> |
| 1206 |
<DetectChar attribute="Error" context="#pop" char="}"/> |
| 1207 |
</context> |
| 1208 |
<context attribute="Variable" lineEndContext="#stay" name="VarFlagsVar" fallthroughContext="#pop!CheckVarAlt"> |
| 1209 |
<DetectChar context="VarBraceStartRecursive" char="$" lookAhead="1"/> |
| 1210 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1211 |
<DetectChar attribute="String DoubleQ" context="StringDQ" char="""/> |
| 1212 |
<AnyChar attribute="Parameter Expansion Operator" context="#stay" String="#+^=~"/> |
| 1213 |
<DetectIdentifier attribute="Variable" context="#pop!CheckVarAlt"/> |
| 1214 |
<AnyChar attribute="Variable" context="#pop!CheckVarAlt" String="*@?$-"/> |
| 1215 |
<Int attribute="Variable" context="#pop!CheckVarAlt" additionalDeliminator="#~=^+{}[]:-/$"/> |
| 1216 |
<Detect2Chars context="#pop!VarSubShell" char="!" char1="}" lookAhead="1"/> |
| 1217 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!AlternateValue" char="!"/> |
| 1218 |
</context> |
| 1219 |
|
| 1220 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarSubShell"> |
| 1221 |
<DetectChar attribute="Variable" context="#pop!CheckVarAlt" char="!"/> |
| 1222 |
</context> |
| 1223 |
|
| 1224 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarFlag_s"> |
| 1225 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_s[" char="["/> |
| 1226 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_s<" char="<"/> |
| 1227 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_s{" char="{"/> |
| 1228 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_s(" char="("/> |
| 1229 |
<RegExpr attribute="Parameter Expansion Operator" context="#pop!VarFlag_sx" String="(.)"/> |
| 1230 |
</context> |
| 1231 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_s["> |
| 1232 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> |
| 1233 |
</context> |
| 1234 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_s<"> |
| 1235 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=">"/> |
| 1236 |
</context> |
| 1237 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_s{"> |
| 1238 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="}"/> |
| 1239 |
</context> |
| 1240 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_s("> |
| 1241 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=")"/> |
| 1242 |
</context> |
| 1243 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_sx"> |
| 1244 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="1" dynamic="1"/> |
| 1245 |
</context> |
| 1246 |
|
| 1247 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_l"> |
| 1248 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_l[" char="["/> |
| 1249 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_l<" char="<"/> |
| 1250 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_l{" char="{"/> |
| 1251 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_l(" char="("/> |
| 1252 |
<RegExpr attribute="Parameter Expansion Operator" context="#pop!VarFlag_lx" String="(.)"/> |
| 1253 |
</context> |
| 1254 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_l["> |
| 1255 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_l[s" char="]" char1="["/> |
| 1256 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> |
| 1257 |
<IncludeRules context="FindExprDblParen"/> |
| 1258 |
</context> |
| 1259 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_l<"> |
| 1260 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_l<s" char=">" char1="<"/> |
| 1261 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=">"/> |
| 1262 |
<IncludeRules context="FindExprDblParen"/> |
| 1263 |
</context> |
| 1264 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_l{"> |
| 1265 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_l{s" char="}" char1="{"/> |
| 1266 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="}"/> |
| 1267 |
<IncludeRules context="FindExprDblParen"/> |
| 1268 |
</context> |
| 1269 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_l("> |
| 1270 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_l(s" char=")" char1="("/> |
| 1271 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=")"/> |
| 1272 |
<IncludeRules context="FindExprDblParen"/> |
| 1273 |
</context> |
| 1274 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_lx"> |
| 1275 |
<RegExpr attribute="Parameter Expansion Operator" context="#pop!VarFlag_lxs" String="(%1)%1" dynamic="1"/> |
| 1276 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="1" dynamic="1"/> |
| 1277 |
<IncludeRules context="FindExprDblParen"/> |
| 1278 |
</context> |
| 1279 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_l[s"> |
| 1280 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char="]" char1="["/> |
| 1281 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> |
| 1282 |
</context> |
| 1283 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_l<s"> |
| 1284 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char=">" char1="<"/> |
| 1285 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=">"/> |
| 1286 |
</context> |
| 1287 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_l{s"> |
| 1288 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char="}" char1="{"/> |
| 1289 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="}"/> |
| 1290 |
</context> |
| 1291 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_l(s"> |
| 1292 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char=")" char1="("/> |
| 1293 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=")"/> |
| 1294 |
</context> |
| 1295 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_lxs"> |
| 1296 |
<StringDetect attribute="Parameter Expansion Operator" context="#stay" String="%1%1" dynamic="1"/> |
| 1297 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="1" dynamic="1"/> |
| 1298 |
</context> |
| 1299 |
|
| 1300 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="VarFlag_ps"> |
| 1301 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_ps[" char="["/> |
| 1302 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_ps<" char="<"/> |
| 1303 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_ps{" char="{"/> |
| 1304 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_ps(" char="("/> |
| 1305 |
<RegExpr attribute="Parameter Expansion Operator" context="#pop!VarFlag_psx" String="(.)"/> |
| 1306 |
</context> |
| 1307 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_ps["> |
| 1308 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> |
| 1309 |
<RegExpr attribute="Variable" context="#stay" String="\$(&varname;|[0-9]+)(?=\])"/> |
| 1310 |
</context> |
| 1311 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_ps<"> |
| 1312 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=">"/> |
| 1313 |
<RegExpr attribute="Variable" context="#stay" String="\$(&varname;|[0-9]+)(?=>)"/> |
| 1314 |
</context> |
| 1315 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_ps{"> |
| 1316 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="}"/> |
| 1317 |
<RegExpr attribute="Variable" context="#stay" String="\$(&varname;|[0-9]+)(?=})"/> |
| 1318 |
</context> |
| 1319 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_ps("> |
| 1320 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=")"/> |
| 1321 |
<RegExpr attribute="Variable" context="#stay" String="\$(&varname;|[0-9]+)(?=\))"/> |
| 1322 |
</context> |
| 1323 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_psx"> |
| 1324 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="1" dynamic="1"/> |
| 1325 |
<RegExpr attribute="Variable" context="#stay" String="\$(?!%1)(?:[A-Za-z_](?:(?!%1)[A-Za-z0-9_])*+|(?:(?!%1)[0-9])++)(?=%1)" dynamic="1"/> |
| 1326 |
<RegExpr attribute="String SingleQ" context="#stay" String="[^%1]+" dynamic="1"/> |
| 1327 |
</context> |
| 1328 |
|
| 1329 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_pl"> |
| 1330 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl[" char="["/> |
| 1331 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl<" char="<"/> |
| 1332 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl{" char="{"/> |
| 1333 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl(" char="("/> |
| 1334 |
<RegExpr attribute="Parameter Expansion Operator" context="#pop!VarFlag_plx" String="(.)"/> |
| 1335 |
</context> |
| 1336 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_pl["> |
| 1337 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl[s" char="]" char1="["/> |
| 1338 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> |
| 1339 |
<IncludeRules context="FindExprDblParen"/> |
| 1340 |
</context> |
| 1341 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_pl<"> |
| 1342 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl<s" char=">" char1="<"/> |
| 1343 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=">"/> |
| 1344 |
<IncludeRules context="FindExprDblParen"/> |
| 1345 |
</context> |
| 1346 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_pl{"> |
| 1347 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl{s" char="}" char1="{"/> |
| 1348 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="}"/> |
| 1349 |
<IncludeRules context="FindExprDblParen"/> |
| 1350 |
</context> |
| 1351 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_pl("> |
| 1352 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!VarFlag_pl(s" char=")" char1="("/> |
| 1353 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=")"/> |
| 1354 |
<IncludeRules context="FindExprDblParen"/> |
| 1355 |
</context> |
| 1356 |
<context attribute="Normal Text" lineEndContext="#stay" name="VarFlag_plx"> |
| 1357 |
<RegExpr attribute="Parameter Expansion Operator" context="#pop!VarFlag_plxs" String="(%1)%1" dynamic="1"/> |
| 1358 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="1" dynamic="1"/> |
| 1359 |
<IncludeRules context="FindExprDblParen"/> |
| 1360 |
</context> |
| 1361 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_pl[s"> |
| 1362 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char="]" char1="["/> |
| 1363 |
<IncludeRules context="VarFlag_ps["/> |
| 1364 |
</context> |
| 1365 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_pl<s"> |
| 1366 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char=">" char1="<"/> |
| 1367 |
<IncludeRules context="VarFlag_ps<"/> |
| 1368 |
</context> |
| 1369 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_pl{s"> |
| 1370 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char="}" char1="{"/> |
| 1371 |
<IncludeRules context="VarFlag_ps{"/> |
| 1372 |
</context> |
| 1373 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_pl(s"> |
| 1374 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#stay" char=")" char1="("/> |
| 1375 |
<IncludeRules context="VarFlag_ps("/> |
| 1376 |
</context> |
| 1377 |
<context attribute="String SingleQ" lineEndContext="#stay" name="VarFlag_plxs"> |
| 1378 |
<StringDetect attribute="Parameter Expansion Operator" context="#stay" String="%1%1" dynamic="1"/> |
| 1379 |
<IncludeRules context="VarFlag_psx"/> |
| 1380 |
</context> |
| 1381 |
|
| 1382 |
<context attribute="Escape" lineEndContext="#pop" name="BraceExpansion"> |
| 1383 |
<DetectChar attribute="Escape" context="#pop!BraceExpansion2" char="{"/> |
| 1384 |
</context> |
| 1385 |
<context attribute="Escape" lineEndContext="#pop" name="BraceExpansion2"> |
| 1386 |
<DetectChar attribute="Operator" context="#stay" char=","/> |
| 1387 |
<DetectChar attribute="Escape" context="#pop" char="}"/> |
| 1388 |
<DetectChar context="EscapeMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 1389 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1390 |
<DetectChar attribute="Backquote" context="CommandBackq" char="`"/> |
| 1391 |
<DetectChar context="BraceExpansionVariables" char="$" lookAhead="1"/> |
| 1392 |
<IncludeRules context="FindStrings"/> |
| 1393 |
<IncludeRules context="FindPattern"/> |
| 1394 |
<DetectIdentifier attribute="Escape"/> |
| 1395 |
</context> |
| 1396 |
<context attribute="Escape" lineEndContext="#pop" name="EscapeMaybeBraceExpansion"> |
| 1397 |
<IncludeRules context="DispatchBraceExpansion"/> |
| 1398 |
<DetectChar attribute="Escape" context="#pop!BraceExpansion2" char="{"/> |
| 1399 |
</context> |
| 1400 |
<context attribute="Escape" lineEndContext="#pop" name="BraceExpansionVariables"> |
| 1401 |
<IncludeRules context="DispatchVariables"/> |
| 1402 |
<DetectChar attribute="Escape" context="#pop" char="$"/> |
| 1403 |
</context> |
| 1404 |
|
| 1405 |
<context attribute="Escape" lineEndContext="#pop" name="PathBraceExpansion"> |
| 1406 |
<DetectChar attribute="Escape" context="#pop!PathBraceExpansion2" char="{"/> |
| 1407 |
</context> |
| 1408 |
<context attribute="Path" lineEndContext="#pop" name="PathBraceExpansion2"> |
| 1409 |
<DetectChar attribute="Operator" context="#stay" char=","/> |
| 1410 |
<DetectChar attribute="Escape" context="#pop" char="}"/> |
| 1411 |
<DetectChar context="PathMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 1412 |
<IncludeRules context="FindWord"/> |
| 1413 |
<IncludeRules context="FindPattern"/> |
| 1414 |
<DetectIdentifier attribute="Path"/> |
| 1415 |
</context> |
| 1416 |
|
| 1417 |
<context attribute="Normal Text" lineEndContext="#pop" name="SequenceExpression"> |
| 1418 |
<AnyChar attribute="Number" context="#stay" String="0123456789-"/> |
| 1419 |
<IncludeRules context="FindWord"/> |
| 1420 |
<Detect2Chars attribute="Escape" context="#stay" char="." char1="."/> |
| 1421 |
<DetectChar attribute="Escape" context="#pop" char="}"/> |
| 1422 |
</context> |
| 1423 |
|
| 1424 |
<!-- ====== These are the contexts that can be branched to ======= --> |
| 1425 |
|
| 1426 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenOrSubShell"> |
| 1427 |
<RegExpr attribute="Keyword" context="#pop!SubShell" String="\((?=&arithmetic_as_subshell;)|" beginRegion="subshell"/> |
| 1428 |
<Detect2Chars attribute="Keyword" context="#pop!ExprDblParen" char="(" char1="(" beginRegion="expression"/> |
| 1429 |
</context> |
| 1430 |
<!-- ExprDblParen consumes an expression started in command mode till )) --> |
| 1431 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParen"> |
| 1432 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1433 |
<Detect2Chars attribute="Keyword" context="#pop" char=")" char1=")" endRegion="expression"/> |
| 1434 |
<IncludeRules context="FindExprDblParen"/> |
| 1435 |
<!-- ((cmd |
| 1436 |
) # jump to SubShell context --> |
| 1437 |
<DetectChar attribute="Keyword" context="#pop!SubShell" char=")" endRegion="expression" beginRegion="subshell"/> |
| 1438 |
</context> |
| 1439 |
<context attribute="Normal Text" lineEndContext="#stay" name="FindExprDblParen"> |
| 1440 |
<Detect2Chars attribute="Control" context="#stay" char="&" char1="&"/> |
| 1441 |
<Detect2Chars attribute="Control" context="#stay" char="|" char1="|"/> |
| 1442 |
<AnyChar attribute="Operator" context="#stay" String="+-!~*/%<>=&^|?:"/> |
| 1443 |
<DetectChar attribute="Control" context="#stay" char=","/> |
| 1444 |
<DetectChar attribute="Normal Text" context="ExprSubDblParen" char="("/> |
| 1445 |
<AnyChar context="Number" String="0123456789." lookAhead="1"/> |
| 1446 |
<DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> |
| 1447 |
<IncludeRules context="FindWord"/> |
| 1448 |
<DetectChar context="MaybeArithmeticBrace" char="{" lookAhead="1"/> |
| 1449 |
<Detect2Chars attribute="BaseN" context="NoPrefix" char="#" char1="#"/> |
| 1450 |
<DetectChar attribute="Error" context="#stay" char="#"/> |
| 1451 |
<DetectIdentifier attribute="Variable" context="#stay"/> |
| 1452 |
</context> |
| 1453 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprSubDblParen"> |
| 1454 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1455 |
<DetectChar attribute="Normal Text" context="#pop" char=")"/> |
| 1456 |
<IncludeRules context="FindExprDblParen"/> |
| 1457 |
</context> |
| 1458 |
<context attribute="Error" lineEndContext="#pop" name="MaybeArithmeticBrace"> |
| 1459 |
<IncludeRules context="DispatchBraceExpansion"/> |
| 1460 |
<DetectChar attribute="Error" context="#pop" char="{"/> |
| 1461 |
</context> |
| 1462 |
<context attribute="Normal Text" lineEndContext="#pop" name="NoPrefix" fallthroughContext="#pop"> |
| 1463 |
<DetectChar context="AssumeEscape" char="\"/> |
| 1464 |
<RegExpr attribute="Number" context="#pop" String="[^][()]"/> |
| 1465 |
</context> |
| 1466 |
|
| 1467 |
<context attribute="Number" lineEndContext="#pop" name="Number"> |
| 1468 |
<Detect2Chars attribute="Hex" context="#pop!Hex" char="0" char1="x"/> |
| 1469 |
<Detect2Chars attribute="Hex" context="#pop!Hex" char="0" char1="X"/> |
| 1470 |
<RegExpr attribute="Base" context="#pop!BaseN" String="[1-9][0-9_]*+#"/> |
| 1471 |
<RegExpr attribute="Number" context="#pop" String="∫(\.(∫&exp;?+|&exp;)?|&exp;)?|\.∫&exp;?"/> |
| 1472 |
<DetectChar attribute="Operator" context="#pop" char="."/> |
| 1473 |
</context> |
| 1474 |
<context attribute="Hex" lineEndContext="#pop" name="Hex" fallthroughContext="#pop"> |
| 1475 |
<RegExpr attribute="Hex" context="#pop" String="[0-9a-fA-F_]+"/> |
| 1476 |
</context> |
| 1477 |
<context attribute="BaseN" lineEndContext="#pop" name="BaseN" fallthroughContext="#pop"> |
| 1478 |
<RegExpr attribute="BaseN" context="#pop" String="[0-9a-zA-Z@_]+"/> |
| 1479 |
</context> |
| 1480 |
|
| 1481 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubstOrSubstCommand"> |
| 1482 |
<RegExpr attribute="Parameter Expansion" context="#pop!SubstCommand" String="\$\((?=&arithmetic_as_subshell;)|" beginRegion="subshell"/> |
| 1483 |
<StringDetect attribute="Parameter Expansion" context="#pop!ExprDblParenSubst" String="$((" beginRegion="expression"/> |
| 1484 |
</context> |
| 1485 |
<!-- ExprDblParenSubst like ExprDblParen but matches )) as Variable --> |
| 1486 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblParenSubst"> |
| 1487 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1488 |
<Detect2Chars attribute="Parameter Expansion" context="#pop" char=")" char1=")" endRegion="expression"/> |
| 1489 |
<IncludeRules context="FindExprDblParen"/> |
| 1490 |
<!-- $((cmd |
| 1491 |
) # jump to SubstCommand context --> |
| 1492 |
<DetectChar attribute="Parameter Expansion" context="#pop!SubstCommand" char=")" endRegion="expression" beginRegion="subshell"/> |
| 1493 |
</context> |
| 1494 |
|
| 1495 |
<!-- ExprBracket consumes an expression till ] --> |
| 1496 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprBracket" fallthroughContext="#pop!ExprBracketNot"> |
| 1497 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1498 |
<IncludeRules context="FindExprBracketEnd"/> |
| 1499 |
</context> |
| 1500 |
|
| 1501 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketNot" fallthroughContext="#pop!ExprBracketParam1"> |
| 1502 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam1"/> |
| 1503 |
<Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1=" " lookAhead="1"/> |
| 1504 |
<Detect2Chars attribute="Expression" context="ExprBracketTestMaybeNot" char="!" char1="&tab;" lookAhead="1"/> |
| 1505 |
</context> |
| 1506 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketTestMaybeNot"> |
| 1507 |
<DetectChar attribute="Expression" context="#pop" char="!"/> |
| 1508 |
</context> |
| 1509 |
|
| 1510 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam1" fallthroughContext="ExprBracketValue"> |
| 1511 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam2"/> |
| 1512 |
<DetectChar context="TestMaybeUnary" char="-" lookAhead="1"/> |
| 1513 |
<IncludeRules context="FindExprBracketEnd"/> |
| 1514 |
</context> |
| 1515 |
|
| 1516 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketValue"> |
| 1517 |
<AnyChar context="#pop" String=" &tab;" lookAhead="1"/> |
| 1518 |
<AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> |
| 1519 |
<IncludeRules context="FindWord"/> |
| 1520 |
<IncludeRules context="FindGlobAny"/> |
| 1521 |
<IncludeRules context="FindPathThenPop"/> |
| 1522 |
<DetectChar context="ExprBracketValueMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 1523 |
<DetectChar context="NormalOptionMaybeGroupEnd" char="}" lookAhead="1"/> |
| 1524 |
<DetectIdentifier attribute="Normal Text"/> |
| 1525 |
</context> |
| 1526 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketValueRecBrace"> |
| 1527 |
<AnyChar context="#pop#pop" String=" &tab;" lookAhead="1"/> |
| 1528 |
<AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> |
| 1529 |
<IncludeRules context="FindWord"/> |
| 1530 |
<IncludeRules context="FindGlobAny"/> |
| 1531 |
<DetectChar context="ExprBracketValueMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 1532 |
<DetectChar attribute="Normal Text" context="#pop" char="}"/> |
| 1533 |
<DetectIdentifier attribute="Normal Text"/> |
| 1534 |
</context> |
| 1535 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprBracketValueMaybeBraceExpansion"> |
| 1536 |
<IncludeRules context="DispatchBraceExpansion"/> |
| 1537 |
<DetectChar attribute="Normal Text" context="#pop!ExprBracketValueRecBrace" char="{"/> |
| 1538 |
</context> |
| 1539 |
|
| 1540 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketParam2" fallthroughContext="ExprBracketValue"> |
| 1541 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprBracketParam3"/> |
| 1542 |
<AnyChar context="TestMaybeBinary" String="-=!" lookAhead="1"/> |
| 1543 |
<IncludeRules context="FindExprBracketEnd"/> |
| 1544 |
</context> |
| 1545 |
|
| 1546 |
<context attribute="Normal Text" lineEndContext="ExprBracketFinal" name="ExprBracketParam3" fallthroughContext="ExprBracketValue"> |
| 1547 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprBracketFinal"/> |
| 1548 |
<IncludeRules context="FindExprBracketEnd"/> |
| 1549 |
</context> |
| 1550 |
|
| 1551 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprBracketFinal" fallthroughContext="ExprBracketValue"> |
| 1552 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1553 |
<IncludeRules context="FindExprBracketEnd"/> |
| 1554 |
<RegExpr attribute="Expression" context="#pop!ExprBracket" String="-[ao]&eos;"/> |
| 1555 |
<RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\][^ &tab;])++" endRegion="expression"/> |
| 1556 |
</context> |
| 1557 |
|
| 1558 |
<context attribute="Normal Text" lineEndContext="#stay" name="FindExprBracketEnd"> |
| 1559 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1560 |
<RegExpr attribute="Builtin" context="#pop" String="\](?=($|[ &tab;;|&<>)]))" endRegion="expression"/> |
| 1561 |
</context> |
| 1562 |
|
| 1563 |
<context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary" fallthroughContext="#pop!ExprBracketValue"> |
| 1564 |
<RegExpr attribute="Expression" context="#pop#pop!ExprBracketParam2" String="&unary_operators;"/> |
| 1565 |
</context> |
| 1566 |
<context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary" fallthroughContext="#pop!ExprBracketValue"> |
| 1567 |
<RegExpr attribute="Expression" context="#pop" String="&binary_operators;"/> |
| 1568 |
</context> |
| 1569 |
|
| 1570 |
|
| 1571 |
<!-- ExprDblBracket consumes an expression till ]] --> |
| 1572 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracket" fallthroughContext="#pop!ExprDblBracketNot"> |
| 1573 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1574 |
<IncludeRules context="FindExprDblBracketEnd"/> |
| 1575 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1576 |
</context> |
| 1577 |
|
| 1578 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketNot" fallthroughContext="#pop!ExprDblBracketParam1"> |
| 1579 |
<DetectChar context="ExprDblBracketTestMaybeNot" char="!" lookAhead="1"/> |
| 1580 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1581 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1582 |
</context> |
| 1583 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketTestMaybeNot" fallthroughContext="#pop#pop!ExprDblBracketParam1"> |
| 1584 |
<RegExpr attribute="Expression" context="#pop" String="!(?=$|[ &tab;(])"/> |
| 1585 |
</context> |
| 1586 |
|
| 1587 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam1" fallthroughContext="#pop!ExprDblBracketParam1_2"> |
| 1588 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1589 |
</context> |
| 1590 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam1_2" fallthroughContext="ExprDblBracketValueText"> |
| 1591 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam2"/> |
| 1592 |
<DetectChar context="TestMaybeUnary2" char="-" lookAhead="1"/> |
| 1593 |
<DetectChar context="ExprDblBracketSubValue" char="(" lookAhead="1"/> |
| 1594 |
<IncludeRules context="FindExprDblBracketEnd"/> |
| 1595 |
</context> |
| 1596 |
<context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeUnary2" fallthroughContext="#pop!ExprDblBracketValueText"> |
| 1597 |
<RegExpr attribute="Expression" context="#pop!ExprDblBracketUnary" String="&unary_operators;(?!\s+(?:=~|&binary_operators;))"/> |
| 1598 |
</context> |
| 1599 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketUnary" fallthroughContext="#pop!ExprDblBracketValueText"> |
| 1600 |
<DetectSpaces attribute="Normal Text"/> |
| 1601 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1602 |
</context> |
| 1603 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketSubValue" fallthroughContext="#pop"> |
| 1604 |
<DetectChar attribute="Operator" context="ExprDblBracketNot" char="("/> |
| 1605 |
<DetectChar attribute="Operator" context="#pop" char=")"/> |
| 1606 |
</context> |
| 1607 |
|
| 1608 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueText" fallthroughContext="#pop!ExprDblBracketValueText2"> |
| 1609 |
<Detect2Chars context="#pop!ExprDblBracketValueTextMaybeEnd" char="]" char1="]" lookAhead="1"/> |
| 1610 |
<IncludeRules context="FindExprDblBracketValueTextPath"/> |
| 1611 |
</context> |
| 1612 |
<context attribute="Normal Text" lineEndContext="#pop" name="FindExprDblBracketValueTextPath"> |
| 1613 |
<RegExpr context="#pop!ExprDblBracketValueTextPath" String="&path_with_sep;|" lookAhead="1"/> |
| 1614 |
</context> |
| 1615 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueTextMaybeEnd"> |
| 1616 |
<RegExpr attribute="Keyword" context="#pop#pop" String="&dblbracket_close;" endRegion="expression"/> |
| 1617 |
<IncludeRules context="FindExprDblBracketValueTextPath"/> |
| 1618 |
<Detect2Chars context="#pop!ExprDblBracketValueText2" char="]" char1="]" lookAhead="1"/> |
| 1619 |
</context> |
| 1620 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueText2"> |
| 1621 |
<DetectIdentifier/> |
| 1622 |
<AnyChar String="*?+@~^:%+-/,"/> |
| 1623 |
<Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="&" char1="&"/> |
| 1624 |
<Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="|" char1="|"/> |
| 1625 |
<AnyChar context="#pop" String=" &tab;)" lookAhead="1"/> |
| 1626 |
<IncludeRules context="FindWord"/> |
| 1627 |
<IncludeRules context="FindGroupPattern"/> |
| 1628 |
<AnyChar attribute="Error" context="#stay" String="&;|"/> |
| 1629 |
<DetectChar context="ExprDblBracketValueTextMaybeRange" char="<" lookAhead="1"/> |
| 1630 |
<DetectChar attribute="Expression" context="#pop!ExprDblBracketValuePattern" char=">"/> |
| 1631 |
</context> |
| 1632 |
<context attribute="Path" lineEndContext="#pop" name="ExprDblBracketValueTextPath"> |
| 1633 |
<IncludeRules context="ExprDblBracketValueText2"/> |
| 1634 |
</context> |
| 1635 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValueTextMaybeRange"> |
| 1636 |
<RegExpr context="#pop" String="&globrange;"/> |
| 1637 |
<DetectChar attribute="Expression" context="#pop#pop!ExprDblBracketValuePattern" char="<"/> |
| 1638 |
</context> |
| 1639 |
|
| 1640 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValuePattern" fallthroughContext="#pop!ExprDblBracketValuePattern2"> |
| 1641 |
<RegExpr context="ExprDblBracketValuePatternPath" String="&path_with_sep;|" lookAhead="1"/> |
| 1642 |
</context> |
| 1643 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValuePatternPath" fallthroughContext="#pop!PathThenPop"> |
| 1644 |
<DetectChar attribute="Path" context="#pop!PathThenPop" char="~"/> |
| 1645 |
</context> |
| 1646 |
<context attribute="Normal Text" lineEndContext="#pop" name="ExprDblBracketValuePattern2"> |
| 1647 |
<DetectIdentifier attribute="Normal Text"/> |
| 1648 |
<Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="&" char1="&"/> |
| 1649 |
<Detect2Chars attribute="Control" context="#pop#pop!ExprDblBracket" char="|" char1="|"/> |
| 1650 |
<AnyChar context="#pop" String=" &tab;)" lookAhead="1"/> |
| 1651 |
<IncludeRules context="FindWord"/> |
| 1652 |
<IncludeRules context="FindSingleGlob"/> |
| 1653 |
<IncludeRules context="FindGlobAny"/> |
| 1654 |
<IncludeRules context="FindGroupPattern"/> |
| 1655 |
<DetectChar context="ExprDblBracketValueMaybeGlobRange" char="<" lookAhead="1"/> |
| 1656 |
<AnyChar attribute="Error" context="#stay" String=">&|;"/> |
| 1657 |
</context> |
| 1658 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketValueMaybeGlobRange"> |
| 1659 |
<IncludeRules context="FindGlobRangeThenPop"/> |
| 1660 |
<DetectChar attribute="Error" context="#pop" char="<"/> |
| 1661 |
</context> |
| 1662 |
|
| 1663 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam2" fallthroughContext="#pop!ExprDblBracketParam2_2"> |
| 1664 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1665 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1666 |
</context> |
| 1667 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam2_2" fallthroughContext="ExprDblBracketValuePattern"> |
| 1668 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/> |
| 1669 |
<AnyChar context="TestMaybeBinary2" String="-=!" lookAhead="1"/> |
| 1670 |
<AnyChar attribute="Expression" context="#pop!ExprDblBracketParam3Spe" String="<>"/> |
| 1671 |
<IncludeRules context="FindExprDblBracketEnd"/> |
| 1672 |
</context> |
| 1673 |
<context attribute="Normal Text" lineEndContext="#pop" name="TestMaybeBinary2" fallthroughContext="#pop!ExprDblBracketValuePattern"> |
| 1674 |
<IncludeRules context="TestMaybeBinary"/> |
| 1675 |
<RegExpr attribute="Expression" context="#pop#pop!ExprDblBracketRegex" String="=~&eos;"/> |
| 1676 |
</context> |
| 1677 |
|
| 1678 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam3Spe" fallthroughContext="#pop!ExprDblBracketParam3"> |
| 1679 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketParam3"/> |
| 1680 |
</context> |
| 1681 |
|
| 1682 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketParam3" fallthroughContext="#pop!ExprDblBracketParam3_2"> |
| 1683 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1684 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1685 |
</context> |
| 1686 |
<context attribute="Normal Text" lineEndContext="#pop!ExprDblBracketFinal" name="ExprDblBracketParam3_2" fallthroughContext="ExprDblBracketValuePattern"> |
| 1687 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketFinal"/> |
| 1688 |
<IncludeRules context="FindExprDblBracketEnd"/> |
| 1689 |
</context> |
| 1690 |
|
| 1691 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketFinal" fallthroughContext="ExprDblBracketValuePattern"> |
| 1692 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1693 |
<IncludeRules context="FindExprDblBracketEnd"/> |
| 1694 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1695 |
<RegExpr attribute="Error" context="#pop" String="(?:[^] &tab;]++|\](?:[^]]|\][^ &tab;]))++" endRegion="expression"/> |
| 1696 |
</context> |
| 1697 |
|
| 1698 |
<context attribute="Normal Text" lineEndContext="#stay" name="FindExprDblBracketEnd"> |
| 1699 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1700 |
<DetectChar context="#pop" char=")" lookAhead="1"/> |
| 1701 |
<Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="&" char1="&"/> |
| 1702 |
<Detect2Chars attribute="Control" context="#pop!ExprDblBracket" char="|" char1="|"/> |
| 1703 |
<RegExpr attribute="Keyword" context="#pop" String="&dblbracket_close;" endRegion="expression"/> |
| 1704 |
</context> |
| 1705 |
|
| 1706 |
<context attribute="Normal Text" lineEndContext="#stay" name="ExprDblBracketRegex" fallthroughContext="#pop!Regex"> |
| 1707 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1708 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1709 |
</context> |
| 1710 |
<context attribute="Pattern" lineEndContext="#stay" name="Regex"> |
| 1711 |
<DetectIdentifier attribute="Pattern"/> |
| 1712 |
<DetectSpaces attribute="Normal Text" context="#pop!ExprDblBracketFinal"/> |
| 1713 |
<DetectChar attribute="Operator" context="#pop" char=")"/> |
| 1714 |
<Detect2Chars attribute="Operator" context="RegexChar" char="[" char1="^"/> |
| 1715 |
<DetectChar attribute="Operator" context="RegexChar" char="["/> |
| 1716 |
<IncludeRules context="FindRegex"/> |
| 1717 |
</context> |
| 1718 |
<context attribute="Pattern" lineEndContext="#stay" name="ExprDblBracketSubRegex"> |
| 1719 |
<DetectIdentifier attribute="Pattern"/> |
| 1720 |
<DetectSpaces attribute="Pattern" context="#stay"/> |
| 1721 |
<DetectChar attribute="Operator" context="#pop" char=")"/> |
| 1722 |
<Detect2Chars attribute="Operator" context="RegexSubChar" char="[" char1="^"/> |
| 1723 |
<DetectChar attribute="Operator" context="RegexSubChar" char="["/> |
| 1724 |
<IncludeRules context="FindRegex"/> |
| 1725 |
</context> |
| 1726 |
|
| 1727 |
<context attribute="Pattern" lineEndContext="#stay" name="FindRegex"> |
| 1728 |
<DetectChar attribute="Operator" context="ExprDblBracketSubRegex" char="("/> |
| 1729 |
<DetectChar attribute="Escape" context="RegexEscape" char="\"/> |
| 1730 |
<DetectChar attribute="Parameter Expansion" context="RegexDup" char="{"/> |
| 1731 |
<AnyChar attribute="Glob" context="#stay" String="^?+*.|"/> |
| 1732 |
<IncludeRules context="FindStrings"/> |
| 1733 |
<DetectChar context="RegexDispatchVariables" char="$" lookAhead="1"/> |
| 1734 |
<DetectChar attribute="Backquote" context="RegularBackq" char="`"/> |
| 1735 |
</context> |
| 1736 |
<context attribute="Normal Text" lineEndContext="#stay" name="RegexDispatchVariables"> |
| 1737 |
<IncludeRules context="DispatchVariables"/> |
| 1738 |
<DetectChar attribute="Operator" context="#pop" char="$"/> |
| 1739 |
</context> |
| 1740 |
|
| 1741 |
<context attribute="Normal Text" lineEndContext="#pop" name="RegexEscape"> |
| 1742 |
<RegExpr attribute="Escape" context="#pop" String="x[0-9a-fA-F]{1,2}|[0-7]{1,3}|."/> |
| 1743 |
</context> |
| 1744 |
|
| 1745 |
<context attribute="Normal Text" lineEndContext="#pop" name="RegexDup"> |
| 1746 |
<Int attribute="Number"/> |
| 1747 |
<DetectChar attribute="Parameter Expansion Operator" context="#stay" char=","/> |
| 1748 |
<DetectChar attribute="Parameter Expansion" context="#pop" char="}"/> |
| 1749 |
</context> |
| 1750 |
|
| 1751 |
<context attribute="Pattern" lineEndContext="#pop" name="RegexSubChar" fallthroughContext="#pop!RegexSubInChar"> |
| 1752 |
<AnyChar attribute="Pattern" context="#pop!RegexSubInChar" String="-]"/> |
| 1753 |
</context> |
| 1754 |
<context attribute="Pattern" lineEndContext="#pop" name="RegexSubInChar"> |
| 1755 |
<DetectSpaces attribute="Pattern" context="#stay"/> |
| 1756 |
<IncludeRules context="RegexInChar"/> |
| 1757 |
</context> |
| 1758 |
|
| 1759 |
<context attribute="Pattern" lineEndContext="#pop" name="RegexChar" fallthroughContext="#pop!RegexInChar"> |
| 1760 |
<AnyChar attribute="Pattern" context="#pop!RegexInChar" String="-]"/> |
| 1761 |
</context> |
| 1762 |
<context attribute="Pattern" lineEndContext="#pop" name="RegexInChar"> |
| 1763 |
<Detect2Chars context="RegexInCharEnd" char="-" char1="]" lookAhead="1"/> |
| 1764 |
<DetectChar attribute="Operator" context="#stay" char="-"/> |
| 1765 |
<DetectChar attribute="Escape" context="RegexEscape" char="\"/> |
| 1766 |
<DetectChar context="RegexCharClassSelect" char="[" lookAhead="1"/> |
| 1767 |
<DetectChar attribute="Operator" context="#pop" char="]"/> |
| 1768 |
<AnyChar context="#pop" String="() &tab;" lookAhead="1"/> |
| 1769 |
<IncludeRules context="FindStrings"/> |
| 1770 |
</context> |
| 1771 |
<context attribute="Operator" lineEndContext="#stay" name="RegexInCharEnd"> |
| 1772 |
<DetectChar attribute="Pattern" context="#stay" char="-"/> |
| 1773 |
<DetectChar attribute="Operator" context="#pop#pop" char="]"/> |
| 1774 |
</context> |
| 1775 |
<context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCharClassSelect"> |
| 1776 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexCharClass" char="[" char1=":"/> |
| 1777 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexCollatingSymbols" char="[" char1="."/> |
| 1778 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!RegexEquivalenceClass" char="[" char1="="/> |
| 1779 |
<DetectChar attribute="Pattern" context="#pop" char="["/> |
| 1780 |
</context> |
| 1781 |
|
| 1782 |
<context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCharClass"> |
| 1783 |
<DetectIdentifier attribute="Parameter Expansion"/> |
| 1784 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char=":" char1="]"/> |
| 1785 |
<DetectChar attribute="Error" context="#pop" char="]"/> |
| 1786 |
</context> |
| 1787 |
<context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexCollatingSymbols"> |
| 1788 |
<DetectIdentifier attribute="Parameter Expansion"/> |
| 1789 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char="." char1="]"/> |
| 1790 |
<DetectChar attribute="Error" context="#pop" char="]"/> |
| 1791 |
</context> |
| 1792 |
<context attribute="Parameter Expansion" lineEndContext="#pop#pop#pop" name="RegexEquivalenceClass"> |
| 1793 |
<DetectIdentifier attribute="Parameter Expansion"/> |
| 1794 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop" char="=" char1="]"/> |
| 1795 |
<DetectChar attribute="Error" context="#pop" char="]"/> |
| 1796 |
</context> |
| 1797 |
|
| 1798 |
<!-- SubShell consumes shell input till ) --> |
| 1799 |
<context attribute="Normal Text" lineEndContext="#stay" name="SubShell" fallthroughContext="Command"> |
| 1800 |
<DetectChar attribute="Keyword" context="#pop" char=")" endRegion="subshell"/> |
| 1801 |
<IncludeRules context="Start"/> |
| 1802 |
</context> |
| 1803 |
|
| 1804 |
<!-- Assign consumes an expression till EOL or whitespace --> |
| 1805 |
<context attribute="Normal Text" lineEndContext="#pop" name="Assign" fallthroughContext="#pop!RegularAssign"> |
| 1806 |
<DetectChar attribute="Variable" context="#pop!AssignArray" char="("/> |
| 1807 |
</context> |
| 1808 |
<context attribute="Normal Text" lineEndContext="#pop" name="RegularAssign" fallthroughContext="#pop"> |
| 1809 |
<DetectChar attribute="Backquote" context="RegularBackq" char="`"/> |
| 1810 |
<IncludeRules context="NormalOption"/> |
| 1811 |
</context> |
| 1812 |
|
| 1813 |
<!-- AssignArray consumes everything till ), marking assignments --> |
| 1814 |
<context attribute="Normal Text" lineEndContext="#stay" name="AssignArray" fallthroughContext="NormalOption"> |
| 1815 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1816 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1817 |
<DetectChar attribute="Variable" context="#pop" char=")"/> |
| 1818 |
<DetectChar context="AssignArrayKey" char="[" lookAhead="1"/> |
| 1819 |
<DetectChar attribute="Backquote" context="AssignArrayBackq" char="`"/> |
| 1820 |
<AnyChar attribute="Error" context="#stay" String="&symbolseps;"/> |
| 1821 |
</context> |
| 1822 |
<context attribute="Normal Text" lineEndContext="#pop" name="AssignArrayKey" fallthroughContext="#pop"> |
| 1823 |
<DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> |
| 1824 |
<DetectChar attribute="Variable" context="#pop" char="="/> |
| 1825 |
</context> |
| 1826 |
<context attribute="Normal Text" lineEndContext="#stay" name="AssignArrayBackq" fallthroughContext="Command"> |
| 1827 |
<DetectChar attribute="Backquote" context="#pop!NormalOption" char="`"/> |
| 1828 |
<DetectChar attribute="Comment" context="CommentBackq" char="#"/> |
| 1829 |
<IncludeRules context="Start"/> |
| 1830 |
</context> |
| 1831 |
|
| 1832 |
<!-- Subscript consumes anything till ], marks as Variable --> |
| 1833 |
<context attribute="Normal Text" lineEndContext="#stay" name="Subscript" fallthroughContext="Subscript2"> |
| 1834 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="]"/> |
| 1835 |
<AnyChar attribute="Number" context="#stay" String="0123456789-"/> |
| 1836 |
</context> |
| 1837 |
<context attribute="Normal Text" lineEndContext="#stay" name="Subscript2"> |
| 1838 |
<DetectIdentifier attribute="Normal Text"/> |
| 1839 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop#pop" char="]"/> |
| 1840 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char=","/> |
| 1841 |
<IncludeRules context="FindGroupPattern"/> |
| 1842 |
<IncludeRules context="FindStrings"/> |
| 1843 |
<DetectChar context="VariableOrSubscriptPos" char="$" lookAhead="1"/> |
| 1844 |
<DetectChar attribute="Backquote" context="RegularBackq" char="`"/> |
| 1845 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1846 |
<AnyChar attribute="Operator" context="#pop" String="@+-!~*/%<>=&^|?:"/> |
| 1847 |
</context> |
| 1848 |
<context attribute="Normal Text" lineEndContext="#pop" name="VariableOrSubscriptPos"> |
| 1849 |
<IncludeRules context="DispatchVariables"/> |
| 1850 |
<DetectChar attribute="Number" context="#pop" char="$"/> |
| 1851 |
</context> |
| 1852 |
|
| 1853 |
<!-- FunctionDef consumes a name, possibly with (), marks as Function --> |
| 1854 |
<context attribute="Function" lineEndContext="#pop" name="FunctionDef" fallthroughContext="#pop"> |
| 1855 |
<Detect2Chars attribute="Operator" context="#pop" char="(" char1=")"/> |
| 1856 |
<DetectSpaces attribute="Normal Text" context="FunctionNameStart"/> |
| 1857 |
</context> |
| 1858 |
<context attribute="Function" lineEndContext="#pop" name="FunctionNameStart" fallthroughContext="#pop!FunctionName"> |
| 1859 |
<AnyChar context="#pop#pop" String="&symbolseps;#" lookAhead="1"/> |
| 1860 |
<DetectChar context="FunctionNameStartMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 1861 |
</context> |
| 1862 |
<context attribute="Function" lineEndContext="#pop" name="FunctionName"> |
| 1863 |
<AnyChar context="#pop" String=" &tab;(" lookAhead="1"/> |
| 1864 |
<IncludeRules context="FindWord"/> |
| 1865 |
<DetectChar context="FunctionNameMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 1866 |
<DetectChar context="NormalOptionMaybeGroupEnd" char="}" lookAhead="1"/> |
| 1867 |
<DetectIdentifier attribute="Function"/> |
| 1868 |
</context> |
| 1869 |
<context attribute="Function" lineEndContext="#pop" name="FunctionNameRecBrace" fallthroughContext="#pop"> |
| 1870 |
<IncludeRules context="FindWord"/> |
| 1871 |
<DetectChar context="FunctionNameMaybeBraceExpansion" char="{" lookAhead="1"/> |
| 1872 |
<DetectChar attribute="Function" context="#pop" char="}"/> |
| 1873 |
<DetectIdentifier attribute="Function"/> |
| 1874 |
</context> |
| 1875 |
<context attribute="Function" lineEndContext="#pop" name="FunctionNameStartMaybeBraceExpansion"> |
| 1876 |
<IncludeRules context="DispatchBraceExpansion"/> |
| 1877 |
<DetectChar attribute="Keyword" context="#pop#pop#pop!Group" char="{" beginRegion="group"/> |
| 1878 |
</context> |
| 1879 |
<context attribute="Function" lineEndContext="#pop" name="FunctionNameMaybeBraceExpansion"> |
| 1880 |
<IncludeRules context="DispatchBraceExpansion"/> |
| 1881 |
<DetectChar attribute="Function" context="#pop!FunctionNameRecBrace" char="{" beginRegion="group"/> |
| 1882 |
</context> |
| 1883 |
|
| 1884 |
<!-- Case is called after the case keyword is encoutered. We handle this because of |
| 1885 |
the lonely closing parentheses that would otherwise disturb the expr matching --> |
| 1886 |
<context attribute="Normal Text" lineEndContext="#stay" name="Case"> |
| 1887 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1888 |
<DetectChar attribute="Keyword" context="#pop!CaseAlt" char="{"/> |
| 1889 |
<WordDetect attribute="Keyword" context="#pop!CaseIn" String="in"/> |
| 1890 |
<IncludeRules context="FindWord"/> |
| 1891 |
<DetectIdentifier attribute="Normal Text" context="#stay"/> |
| 1892 |
</context> |
| 1893 |
|
| 1894 |
<!-- CaseIn is called when the construct 'case ... in' has been found. --> |
| 1895 |
<context attribute="Normal Text" lineEndContext="#stay" name="CaseIn" fallthroughContext="CasePattern"> |
| 1896 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1897 |
<DetectChar attribute="Keyword" context="CaseClosedPattern" char="("/> |
| 1898 |
<DetectChar attribute="Comment" context="Comment" char="#"/> |
| 1899 |
</context> |
| 1900 |
<context attribute="Pattern" lineEndContext="#stay" name="CasePattern"> |
| 1901 |
<WordDetect attribute="Control Flow" context="#pop#pop" String="esac" endRegion="case"/> |
| 1902 |
<IncludeRules context="CaseClosedPattern"/> |
| 1903 |
</context> |
| 1904 |
<context attribute="Pattern" lineEndContext="#stay" name="CaseClosedPattern"> |
| 1905 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1906 |
<DetectChar attribute="Keyword" context="#pop!CaseExpr" char=")" beginRegion="caseexpr"/> |
| 1907 |
<DetectChar context="AssumeEscape" char="\" lookAhead="1"/> |
| 1908 |
<DetectChar attribute="Keyword" context="#stay" char="|"/> |
| 1909 |
<IncludeRules context="FindWord"/> |
| 1910 |
<IncludeRules context="FindPattern"/> |
| 1911 |
<DetectIdentifier attribute="Pattern" context="#stay"/> |
| 1912 |
</context> |
| 1913 |
|
| 1914 |
<context attribute="Normal Text" lineEndContext="#stay" name="CaseAlt" fallthroughContext="CasePattern"> |
| 1915 |
<DetectSpaces attribute="Normal Text" context="#stay"/> |
| 1916 |
<DetectChar attribute="Keyword" context="CasePattern" char="("/> |
| 1917 |
<DetectChar attribute="Keyword" context="#pop!CaseAltEnd" char="}" endRegion="caseexpr" lookAhead="1"/> |
| 1918 |
</context> |
| 1919 |
<context attribute="Normal Text" lineEndContext="#stay" name="CaseAltEnd"> |
| 1920 |
<DetectChar attribute="Keyword" context="#pop" char="}" endRegion="case"/> |
| 1921 |
</context> |
| 1922 |
|
| 1923 |
<!-- CaseExpr eats shell input till ;; / ;& / ;| --> |
| 1924 |
<context attribute="Normal Text" lineEndContext="#stay" name="CaseExpr" fallthroughContext="Command"> |
| 1925 |
<Detect2Chars attribute="Control Flow" context="#pop" char=";" char1="|" endRegion="caseexpr"/> |
| 1926 |
<Detect2Chars attribute="Control Flow" context="#pop" char=";" char1=";" endRegion="caseexpr"/> |
| 1927 |
<Detect2Chars attribute="Control Flow" context="#pop" char=";" char1="&" endRegion="caseexpr"/> |
| 1928 |
<WordDetect context="#pop" String="esac" endRegion="caseexpr" lookAhead="1"/> |
| 1929 |
<DetectChar context="#pop" char="}" lookAhead="1"/> |
| 1930 |
<IncludeRules context="Start"/> |
| 1931 |
</context> |
| 1932 |
|
| 1933 |
<!-- ExprGlobParen is called after a ( is encountered in a argument --> |
| 1934 |
<context attribute="Glob Flag" lineEndContext="#pop" name="ExprGlobParen" fallthroughContext="#pop"> |
| 1935 |
<Detect2Chars attribute="Glob Flag" context="#pop!GlobPatFlag" char="(" char1="#"/> |
| 1936 |
<RegExpr attribute="Glob" context="#pop!ExtGlobPattern" String="\((?=&ispattern;)"/> |
| 1937 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier" char="("/> |
| 1938 |
</context> |
| 1939 |
<context attribute="Glob Flag" lineEndContext="#pop" name="ExprGlobParenThenPath" fallthroughContext="#pop"> |
| 1940 |
<Detect2Chars attribute="Glob Flag" context="#pop!GlobPatFlagThenPath" char="(" char1="#"/> |
| 1941 |
<RegExpr attribute="Glob" context="#pop!ExtGlobPatternThenPath" String="\((?=&ispattern;)"/> |
| 1942 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier" char="("/> |
| 1943 |
</context> |
| 1944 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobQualifier"> |
| 1945 |
<AnyChar attribute="Glob Flag" context="#stay" String="/F.@=p*%bcrwxAIERWXsStUG^-MTNDn"/> |
| 1946 |
<AnyChar attribute="Glob Flag" context="GlobQualifier_e" String="eP"/> |
| 1947 |
<AnyChar attribute="Glob Flag" context="GlobQualifier_u" String="ug"/> |
| 1948 |
<AnyChar attribute="Glob Flag" context="GlobQualifier_a" String="amc"/> |
| 1949 |
<AnyChar attribute="Glob Flag" context="GlobQualifier_o" String="oO"/> |
| 1950 |
<DetectChar attribute="Glob Flag" context="GlobQualifier_f" char="f"/> |
| 1951 |
<DetectChar attribute="Glob Flag" context="GlobQualifier_+" char="+"/> |
| 1952 |
<DetectChar attribute="Glob Flag" context="GlobQualifier_d" char="d"/> |
| 1953 |
<DetectChar attribute="Glob Flag" context="GlobQualifier_L" char="L"/> |
| 1954 |
<DetectChar attribute="Glob Flag" context="GlobQualifier_Y" char="Y"/> |
| 1955 |
<DetectChar attribute="Parameter Expansion Operator" context="Subscript" char="["/> |
| 1956 |
|
| 1957 |
<DetectChar attribute="Operator" context="#stay" char=","/> |
| 1958 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!GlobModifier" char=":"/> |
| 1959 |
<DetectChar attribute="Glob Flag" context="#pop" char=")"/> |
| 1960 |
<IncludeRules context="FindWord"/> |
| 1961 |
</context> |
| 1962 |
|
| 1963 |
<context attribute="Normal Text" lineEndContext="#pop" name="GlobQualifier_o" fallthroughContext="#pop"> |
| 1964 |
<AnyChar attribute="Normal Text" context="#stay" String="nLlamcdN"/> |
| 1965 |
</context> |
| 1966 |
|
| 1967 |
<context attribute="Number" lineEndContext="#pop" name="GlobQualifier_Y" fallthroughContext="#pop"> |
| 1968 |
<AnyChar attribute="Number" context="#stay" String="0123456789"/> |
| 1969 |
</context> |
| 1970 |
|
| 1971 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobQualifier_L" fallthroughContext="#pop"> |
| 1972 |
<AnyChar attribute="Normal Text" context="#stay" String="kKmMpPgGtT"/> |
| 1973 |
<AnyChar attribute="Number" context="#pop!GlobQualifier_Y" String="-+0123456789"/> |
| 1974 |
</context> |
| 1975 |
|
| 1976 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobQualifier_a" fallthroughContext="#pop"> |
| 1977 |
<AnyChar attribute="Normal Text" context="#stay" String="Mwhmsd"/> |
| 1978 |
<AnyChar attribute="Number" context="#pop!GlobQualifier_Y" String="-+0123456789"/> |
| 1979 |
</context> |
| 1980 |
|
| 1981 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobQualifier_+" fallthroughContext="#pop"> |
| 1982 |
<RegExpr attribute="Function" context="#pop" String="[^&_fragpathseps;=,\[]+"/> |
| 1983 |
</context> |
| 1984 |
|
| 1985 |
<context attribute="Path" lineEndContext="#pop" name="GlobQualifier_d"> |
| 1986 |
<AnyChar context="#pop" String=")," lookAhead="1"/> |
| 1987 |
</context> |
| 1988 |
|
| 1989 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobQualifier_u"> |
| 1990 |
<AnyChar attribute="Number" context="#pop!GlobQualifier_Y" String="0123456789"/> |
| 1991 |
<IncludeRules context="GlobQualifier_e"/> |
| 1992 |
</context> |
| 1993 |
|
| 1994 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobQualifier_f" fallthroughContext="#pop"> |
| 1995 |
<AnyChar attribute="Number" context="#pop!GlobQualifier_fo" String="0123456789=+-"/> |
| 1996 |
<DetectChar attribute="Glob" context="#pop!GlobQualifier_fo" char="?"/> |
| 1997 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier_f[" char="["/> |
| 1998 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier_f<" char="<"/> |
| 1999 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier_f{" char="{"/> |
| 2000 |
<RegExpr attribute="Glob Flag" context="#pop!GlobQualifier_fx" String="(.)"/> |
| 2001 |
</context> |
| 2002 |
<context attribute="Number" lineEndContext="#pop" name="GlobQualifier_fo" fallthroughContext="#pop"> |
| 2003 |
<AnyChar attribute="Number" context="#stay" String="0123456789"/> |
| 2004 |
<DetectChar attribute="Glob" context="#stay" char="?"/> |
| 2005 |
</context> |
| 2006 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_f["> |
| 2007 |
<DetectChar attribute="Operator" context="#stay" char=","/> |
| 2008 |
<DetectChar attribute="Glob Flag" context="#pop" char="]"/> |
| 2009 |
</context> |
| 2010 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_f<"> |
| 2011 |
<DetectChar attribute="Operator" context="#stay" char=","/> |
| 2012 |
<DetectChar attribute="Glob Flag" context="#pop" char=">"/> |
| 2013 |
</context> |
| 2014 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_f{"> |
| 2015 |
<DetectChar attribute="Operator" context="#stay" char=","/> |
| 2016 |
<DetectChar attribute="Glob Flag" context="#pop" char="}"/> |
| 2017 |
</context> |
| 2018 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_fx"> |
| 2019 |
<DetectChar attribute="Operator" context="#stay" char=","/> |
| 2020 |
<DetectChar attribute="Glob Flag" context="#pop" char="1" dynamic="1"/> |
| 2021 |
</context> |
| 2022 |
|
| 2023 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobQualifier_e" fallthroughContext="#pop"> |
| 2024 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier_e[" char="["/> |
| 2025 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier_e<" char="<"/> |
| 2026 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier_e{" char="{"/> |
| 2027 |
<RegExpr attribute="Glob Flag" context="#pop!GlobQualifier_ex" String="(.)"/> |
| 2028 |
</context> |
| 2029 |
<context attribute="Normal Text" lineEndContext="#stay" name="IncGlobQualifier_e"> |
| 2030 |
<IncludeRules context="FindStrings"/> |
| 2031 |
<DetectChar context="RegularVariable" char="$" lookAhead="1"/> |
| 2032 |
<DetectChar attribute="Backquote" context="RegularBackq" char="`"/> |
| 2033 |
</context> |
| 2034 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_e["> |
| 2035 |
<DetectChar attribute="Glob Flag" context="#pop" char="]"/> |
| 2036 |
<IncludeRules context="IncGlobQualifier_e"/> |
| 2037 |
</context> |
| 2038 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_e<"> |
| 2039 |
<DetectChar attribute="Glob Flag" context="#pop" char=">"/> |
| 2040 |
<IncludeRules context="IncGlobQualifier_e"/> |
| 2041 |
</context> |
| 2042 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_e{"> |
| 2043 |
<DetectChar attribute="Glob Flag" context="#pop" char="}"/> |
| 2044 |
<IncludeRules context="IncGlobQualifier_e"/> |
| 2045 |
</context> |
| 2046 |
<context attribute="Normal Text" lineEndContext="#stay" name="GlobQualifier_ex"> |
| 2047 |
<DetectChar attribute="Glob Flag" context="#pop" char="1" dynamic="1"/> |
| 2048 |
<IncludeRules context="IncGlobQualifier_e"/> |
| 2049 |
</context> |
| 2050 |
|
| 2051 |
<!-- GlobPatFlag is called after a (# is encountered --> |
| 2052 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobPatFlag" fallthroughContext="#pop"> |
| 2053 |
<IncludeRules context="IncGlobPatFlag"/> |
| 2054 |
<DetectChar attribute="Glob Flag" context="#pop" char=")"/> |
| 2055 |
</context> |
| 2056 |
<context attribute="Glob Flag" lineEndContext="#pop" name="GlobPatFlagThenPath" fallthroughContext="#pop"> |
| 2057 |
<IncludeRules context="IncGlobPatFlag"/> |
| 2058 |
<DetectChar attribute="Glob Flag" context="#pop!PathThenPop" char=")"/> |
| 2059 |
</context> |
| 2060 |
<context attribute="Glob Flag" lineEndContext="#pop" name="IncGlobPatFlag" fallthroughContext="#pop"> |
| 2061 |
<AnyChar attribute="Glob Flag" context="#stay" String="ilIbBcmMaseuU,"/> |
| 2062 |
<AnyChar attribute="Number" context="#stay" String="0123456789"/> |
| 2063 |
<DetectChar attribute="Glob Flag" context="#pop!GlobQualifier" char="q"/> |
| 2064 |
</context> |
| 2065 |
|
| 2066 |
<!-- GlobModifier is called after a : is encountered in a GlobQualifier --> |
| 2067 |
<context attribute="Parameter Expansion" lineEndContext="#pop" name="GlobModifier"> |
| 2068 |
<DetectChar attribute="Parameter Expansion Operator" context="#stay" char=":"/> |
| 2069 |
<AnyChar attribute="Parameter Expansion" context="VarBraceModifier_h" String="ht"/> |
| 2070 |
<DetectChar attribute="Parameter Expansion" context="GlobModifier_s" char="s"/> |
| 2071 |
<Detect2Chars attribute="Parameter Expansion" context="GlobModifier_s" char="g" char1="s"/> |
| 2072 |
<DetectChar attribute="Glob Flag" context="#pop" char=")"/> |
| 2073 |
</context> |
| 2074 |
<context attribute="Parameter Expansion" lineEndContext="#stay" name="GlobModifier_s" fallthroughContext="#pop"> |
| 2075 |
<DetectChar attribute="Error" context="#pop#pop" char=")"/> |
| 2076 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!GlobModifier_s_PatPrefix" char="/"/> |
| 2077 |
</context> |
| 2078 |
<context attribute="Pattern" lineEndContext="#stay" name="GlobModifier_s_PatPrefix" fallthroughContext="#pop!GlobModifier_s_Pat"> |
| 2079 |
<Detect2Chars attribute="Parameter Expansion Operator" context="#pop!GlobModifier_s_Pat" char="#" char1="%"/> |
| 2080 |
<AnyChar attribute="Parameter Expansion Operator" context="#pop!GlobModifier_s_Pat" String="#%"/> |
| 2081 |
</context> |
| 2082 |
<context attribute="Pattern" lineEndContext="#stay" name="GlobModifier_s_Pat"> |
| 2083 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop!GlobModifier_s_Rep" char="/"/> |
| 2084 |
<IncludeRules context="FindWord"/> |
| 2085 |
<IncludeRules context="FindSubPattern"/> |
| 2086 |
<DetectChar attribute="Error" context="#pop#pop" char=")"/> |
| 2087 |
<DetectIdentifier attribute="Pattern"/> |
| 2088 |
</context> |
| 2089 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="GlobModifier_s_Rep"> |
| 2090 |
<DetectChar attribute="Glob Flag" context="#pop#pop" char=")"/> |
| 2091 |
<DetectChar attribute="Parameter Expansion Operator" context="#pop" char="/"/> |
| 2092 |
<DetectChar attribute="String DoubleQ" context="GlobModifier_s_RecursiveRep" char="("/> |
| 2093 |
<IncludeRules context="FindWord"/> |
| 2094 |
<DetectIdentifier attribute="String DoubleQ"/> |
| 2095 |
</context> |
| 2096 |
<context attribute="String DoubleQ" lineEndContext="#stay" name="GlobModifier_s_RecursiveRep"> |
| 2097 |
<DetectChar attribute="String DoubleQ" context="#pop" char=")"/> |
| 2098 |
<DetectChar attribute="String DoubleQ" context="GlobModifier_s_RecursiveRep" char="("/> |
| 2099 |
<IncludeRules context="FindWord"/> |
| 2100 |
<DetectIdentifier attribute="String DoubleQ"/> |
| 2101 |
</context> |
| 2102 |
|
| 2103 |
</contexts> |
| 2104 |
|
| 2105 |
<itemDatas> |
| 2106 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 2107 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 2108 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> |
| 2109 |
<itemData name="Control" defStyleNum="dsKeyword" spellChecking="false"/> |
| 2110 |
<itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false"/> |
| 2111 |
<itemData name="Builtin" defStyleNum="dsBuiltIn" spellChecking="false"/> |
| 2112 |
<itemData name="Command" defStyleNum="dsFunction" spellChecking="false"/> |
| 2113 |
<itemData name="OtherCommand" defStyleNum="dsExtension" spellChecking="false"/> |
| 2114 |
<itemData name="Redirection" defStyleNum="dsOperator" spellChecking="false"/> |
| 2115 |
<itemData name="Escape" defStyleNum="dsDataType" spellChecking="false"/> |
| 2116 |
<itemData name="String SingleQ" defStyleNum="dsString"/> |
| 2117 |
<itemData name="String DoubleQ" defStyleNum="dsString"/> |
| 2118 |
<itemData name="Here Doc" defStyleNum="dsString"/> |
| 2119 |
<itemData name="Backquote" defStyleNum="dsKeyword" spellChecking="false"/> |
| 2120 |
<itemData name="String Transl." defStyleNum="dsString"/> |
| 2121 |
<itemData name="String Escape" defStyleNum="dsDataType"/> |
| 2122 |
<itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> |
| 2123 |
<itemData name="Dollar Prefix" defStyleNum="dsVariable" spellChecking="false"/> |
| 2124 |
<itemData name="Expression" defStyleNum="dsOthers" spellChecking="false"/> |
| 2125 |
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> |
| 2126 |
<itemData name="Pattern" defStyleNum="dsSpecialString" spellChecking="false"/> |
| 2127 |
<itemData name="Path" defStyleNum="dsNormal" spellChecking="false"/> |
| 2128 |
<itemData name="Glob" defStyleNum="dsPreprocessor" spellChecking="false"/> |
| 2129 |
<itemData name="Glob Flag" defStyleNum="dsOperator" spellChecking="false"/> |
| 2130 |
<itemData name="Option" defStyleNum="dsAttribute" spellChecking="false"/> |
| 2131 |
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/> |
| 2132 |
<itemData name="Number" defStyleNum="dsDecVal" spellChecking="false"/> |
| 2133 |
<itemData name="Base" defStyleNum="dsDataType" spellChecking="false"/> |
| 2134 |
<itemData name="BaseN" defStyleNum="dsBaseN" spellChecking="false"/> |
| 2135 |
<itemData name="File Descriptor" defStyleNum="dsDecVal" spellChecking="false"/> |
| 2136 |
<itemData name="Parameter Expansion" defStyleNum="dsVariable" spellChecking="false"/> |
| 2137 |
<itemData name="Parameter Expansion Operator" defStyleNum="dsOperator" spellChecking="false"/> |
| 2138 |
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> |
| 2139 |
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/> |
| 2140 |
</itemDatas> |
| 2141 |
</highlighting> |
| 2142 |
<general> |
| 2143 |
<comments> |
| 2144 |
<comment name="singleLine" start="#"/> |
| 2145 |
</comments> |
| 2146 |
<keywords casesensitive="1" weakDeliminator="^%#[]$._:-/" additionalDeliminator="`"/> |
| 2147 |
</general> |
| 2148 |
</language> |
| 2149 |
<!-- kate: replace-tabs on; indent-width 2; --> |