<Comment>### Comments</Comment><br/>
<Comment># </Comment><Alert Level 2>TODO</Alert Level 2><br/>
<Comment># </Comment><Region Marker>BEGIN</Region Marker><br/>
<Comment>#    fg sfg sfh sft</Comment><br/>
<Comment># </Comment><Region Marker>END</Region Marker><br/>
<Comment>#</Comment><br/>
<Normal Text></Normal Text><br/>
<Comment>### Commands and paths</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Separator>|</Separator><UnixCommand>sort</UnixCommand><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-1</Option><br/>
<CommandPath>/usr/bin/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/usr/local/test/</Path><Normal Text> </Normal Text><Option>-xyz</Option><Normal Text>       </Normal Text><Comment># option as indicator of CommandArgs context</Comment><br/>
<CommandPath>./bin/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/usr/abc</Path><Glob>**</Glob><Path>/tes</Path><Glob>?</Glob><Path>/lkhlk</Path><Normal Text>	</Normal Text><Option>-xyz</Option><Normal Text>   </Normal Text><Comment># tabulator as separator</Comment><br/>
<CommandPath>../bin/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/usr/abc</Path><Glob>**</Glob><Path>/tes</Path><Glob>?</Glob><Path>/lkhlk</Path><br/>
<CommandPath>~/bin/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>../usr/lo</Path><Escape>\ </Escape><Path>cal/test</Path><br/>
<CommandPath>~user/bin/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/usr/</Path><Keychar>{</Keychar><Path>local</Path><Separator>,</Separator><Path>remote</Path><Keychar>}</Keychar><Error>}</Error><Path>/test</Path><Separator>|</Separator><UnixCommand>cat</UnixCommand><Normal Text>  </Normal Text><Comment># show error</Comment><br/>
<CommandPath>/usr/bin/../lib/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/usr/local/test.</Path><Glob>???</Glob><Separator>|</Separator><UnixCommand>cat</UnixCommand><br/>
<CommandPath>/usr/bin\ sdfg/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/usr/local/test.</Path><Glob>*</Glob><br/>
<CommandPath>usr/bin/</CommandPath><Command>other</Command><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><HomeDir>~user</HomeDir><Path>/local/test</Path><br/>
<CommandPath>\ usr/bin/</CommandPath><Command>other</Command><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><HomeDir>~user</HomeDir><Path>/local/test</Path><br/>
<CommandPath>/usr/bin/</CommandPath><Command>lsother</Command><br/>
<CommandPath>../test/root/bin/</CommandPath><Command>fish</Command><Normal Text> </Normal Text><Option>-c</Option><Normal Text> </Normal Text><String DoubleQ>"echo </String DoubleQ><Variable>$t8</Variable><String DoubleQ>"</String DoubleQ><br/>
<CommandPath>test/root/bin/</CommandPath><Command>fish</Command><Normal Text> </Normal Text><Option>-c</Option><Normal Text> </Normal Text><String DoubleQ>"echo </String DoubleQ><Variable>$t8</Variable><String DoubleQ>"</String DoubleQ><br/>
<CommandPath>u</CommandPath><Glob>?</Glob><CommandPath>r/bin/</CommandPath><UnixCommand>ls</UnixCommand><br/>
<CommandPath>usr/b</CommandPath><Glob>?</Glob><CommandPath>n/</CommandPath><UnixCommand>ls</UnixCommand><br/>
<Command>u</Command><Glob>*</Glob><Command>ls</Command><Normal Text>        </Normal Text><Comment># doesn't work, but ok</Comment><br/>
<String DoubleQ>"ls"</String DoubleQ><Normal Text> </Normal Text><Path>/tmp/testtest</Path><Normal Text>                         </Normal Text><Comment># Quotes in commands are expanded</Comment><br/>
<CommandPath>/us</CommandPath><String DoubleQ>"r/bin"</String DoubleQ><CommandPath>/xy/</CommandPath><UnixCommand>ls</UnixCommand><br/>
<Command>abcd</Command><Variable>$a</Variable><br/>
<Command>other</Command><Error>)</Error><Normal Text> abc  </Normal Text><Comment># show error</Comment><br/>
<Error><</Error><Normal Text>other abc  </Normal Text><Comment># show error</Comment><br/>
<Command>other</Command><Redirection>></Redirection><Normal Text> </Normal Text><Path>abc</Path><Normal Text>  </Normal Text><Comment># ok</Comment><br/>
<Command>oth</Command><Redirection>></Redirection><Path>er</Path><Normal Text> abc  </Normal Text><Comment># ok</Comment><br/>
<Command>ot</Command><Error>(</Error><Command>her</Command><Keychar>)</Keychar><Normal Text> abc </Normal Text><Comment># show error</Comment><br/>
<Normal Text></Normal Text><br/>
<Command>-cmd</Command><br/>
<Command>déjà-vu</Command><br/>
<Normal Text></Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>/ho</Path><String DoubleQ>"me/te"</String DoubleQ><Path>st</Path><String SingleQ>'user'</String SingleQ><Path>/abc</Path><Variable>$dir</Variable><Index>[3]</Index><Path>/ab</Path><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> cdefg</Normal Text><Keychar>)</Keychar><Path>cd/xyz</Path><br/>
<Command>cat\ alog</Command><Normal Text> </Normal Text><Option>-abc</Option><br/>
<UnixCommand>ls</UnixCommand><Normal Text> path_not_detected</Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Glob>*</Glob><Normal Text> no_path</Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Glob>*</Glob><Path>path_detected</Path><br/>
<CommandPath>ls/</CommandPath><br/>
<UnixCommand>ls</UnixCommand><Separator>;</Separator><Builtin>echo</Builtin><Normal Text> xy</Normal Text><br/>
<UnixCommand>flex++</UnixCommand><br/>
<Builtin>echo</Builtin><Normal Text> [abc] abc</Normal Text><br/>
<Escape>\</Escape><br/>
<Escape>\</Escape><br/>
<Command>cmd</Command><br/>
<Normal Text></Normal Text><br/>
<Command>cmd</Command><Escape>\</Escape><br/>
<Command>#cmd</Command><br/>
<Normal Text></Normal Text><br/>
<Comment>#specials</Comment><br/>
<Builtin>command</Builtin><Normal Text> </Normal Text><Option>-s</Option><Normal Text> </Normal Text><UnixCommand>ls</UnixCommand><br/>
<Builtin>builtin</Builtin><Normal Text> </Normal Text><Option>--names</Option><Normal Text> </Normal Text><Builtin>jobs</Builtin><br/>
<Builtin>exec</Builtin><Normal Text> </Normal Text><UnixCommand>bash</UnixCommand><br/>
<Builtin>exec</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Option>-e</Option><Normal Text> </Normal Text><Variable>i</Variable><Index>[-1]</Index><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test1</Variable><Index>[-1..1]</Index><Normal Text> </Normal Text><Variable>$test</Variable><Separator>;</Separator><Normal Text> </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test1</Variable><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test1</Variable><Index>[1..</Index><Variable>$n</Variable><Index>]</Index><Normal Text> </Normal Text><Variable>$test</Variable><Separator>;</Separator><Normal Text> </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test1</Variable><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test1</Variable><Index>[</Index><Variable>$n</Variable><Index>..1]</Index><Normal Text> </Normal Text><Variable>$test</Variable><Separator>;</Separator><Normal Text> </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test1</Variable><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test1</Variable><Index>[2..4 -2..-4]</Index><Normal Text> </Normal Text><Variable>$test1</Variable><Index>[4..2 -4..-2]</Index><Separator>;</Separator><Normal Text> </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test1</Variable><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test1</Variable><Index>[2..4 -2..-4][1]</Index><Normal Text> </Normal Text><Variable>$test1</Variable><Index>[4..2 -4..-2][1]</Index><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test1</Variable><Escape>\</Escape><br/>
<Index>[2..4 -2..-4]</Index><Escape>\</Escape><br/>
<Index>[1]</Index><Normal Text> a</Normal Text><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test1</Variable><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>    </Normal Text><Comment>#bla bla</Comment><br/>
<Normal Text>    a b c</Normal Text><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>page_url</Variable><Normal Text> </Normal Text><Path>http://fishshell.com/docs/</Path><Variable>$version_string</Variable><Path>/</Path><Variable>$fish_help_page</Variable><Normal Text>    </Normal Text><Comment># ???</Comment><br/>
<Builtin>string</Builtin><Normal Text> </Normal Text><Builtin>split</Builtin><Normal Text> </Normal Text><Path>.</Path><Normal Text> example.com</Normal Text><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>b</Variable><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>string</Builtin><Normal Text> </Normal Text><Builtin>repeat</Builtin><Normal Text> </Normal Text><Option>-n</Option><Normal Text> 512 x</Normal Text><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Builtin>read</Builtin><Normal Text> </Normal Text><Option>-gi</Option><Normal Text> </Normal Text><Variable>test</Variable><Normal Text>    </Normal Text><Comment># ok</Comment><br/>
<Builtin>read</Builtin><Normal Text> </Normal Text><Option>-gi</Option><Normal Text> </Normal Text><Variable>$test</Variable><br/>
<Builtin>read</Builtin><Normal Text> </Normal Text><Option>-gi</Option><Normal Text> </Normal Text><String DoubleQ>"test"</String DoubleQ><br/>
<Builtin>read</Builtin><Normal Text> </Normal Text><Option>-gi</Option><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> test</Normal Text><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>x</Variable><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>string</Builtin><Normal Text> </Normal Text><Builtin>split</Builtin><Normal Text> </Normal Text><Option>--max</Option><Normal Text> 1 </Normal Text><Option>--right</Option><Normal Text> </Normal Text><Path>/</Path><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>status</Builtin><Normal Text> current-filename</Normal Text><Keychar>)</Keychar><Normal Text> </Normal Text><Comment>#Comment test</Comment><br/>
<Keychar>)</Keychar><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>test</Variable><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>exec</Builtin><Normal Text> </Normal Text><Variable>$cmd</Variable><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Comment># direct path</Comment><br/>
<Builtin>test</Builtin><Normal Text> </Normal Text><Operator>-d</Operator><Normal Text> </Normal Text><Variable>$tmpldir</Variable><Path>/resources</Path><br/>
<Normal Text></Normal Text><br/>
<Comment>### Options</Comment><br/>
<UnixCommand>cat</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/usr/local/test</Path><Redirection>></Redirection><Path>logfile</Path><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>--longopt</Option><Operator>=</Operator><Path>/test</Path><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><String DoubleQ>"kasdflakjs"</String DoubleQ><Normal Text> </Normal Text><Option>-r</Option><Path>/usr/test</Path><Normal Text> </Normal Text><Option>-x</Option><Path>../test/../bla</Path><Normal Text> </Normal Text><Option>-z</Option><Path>~xyz/hello</Path><br/>
<Normal Text></Normal Text><br/>
<Comment>### Arguments</Comment><br/>
<Builtin>echo</Builtin><Normal Text> abc</Normal Text><String DoubleQ>"def"</String DoubleQ><Normal Text>ghi</Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Path>abc/def</Path><br/>
<Builtin>echo</Builtin><Normal Text> abc[de]</Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> abc</Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> def</Normal Text><Keychar>)</Keychar><Normal Text>ghi</Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> abc</Normal Text><Keychar>{</Keychar><Normal Text>de</Normal Text><Separator>,</Separator><Normal Text>f</Normal Text><Keychar>}</Keychar><Normal Text>ghi</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment># Path Detection</Comment><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>abc</Path><Glob>*</Glob><Path>efghi</Path><Normal Text>  </Normal Text><Comment># fish assumes * is glob -> path</Comment><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>abc</Path><Glob>?</Glob><Path>efghi</Path><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>..</Path><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>..</Path><Normal Text> </Normal Text><Comment>#</Comment><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>.</Path><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>.</Path><Normal Text> </Normal Text><Comment>#</Comment><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><HomeDir>~</HomeDir><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><HomeDir>~abc</HomeDir><Path>/abc/</Path><Glob>*</Glob><Path>.txt</Path><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>./abc</Path><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Path>../abc</Path><br/>
<Builtin>cd</Builtin><Normal Text> </Normal Text><Escape>\ </Escape><Path>abc/tmp</Path><Escape>\ </Escape><Path>.txt</Path><br/>
<Normal Text></Normal Text><br/>
<Builtin>test</Builtin><Normal Text> </Normal Text><Path>..</Path><Normal Text> abc</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>### Escapes</Comment><br/>
<UnixCommand>touch</UnixCommand><Normal Text> a</Normal Text><Escape>\?</Escape><Normal Text>bc</Normal Text><Escape>\[\]</Escape><Normal Text>ax</Normal Text><Escape>\~</Escape><Normal Text>dsf</Normal Text><Escape>\#</Escape><Normal Text>gsd</Normal Text><Escape>\a</Escape><Normal Text>f</Normal Text><Escape>\(\)</Escape><Normal Text>dg</Normal Text><Escape>\?</Escape><Normal Text>sd</Normal Text><Escape>\ </Escape><Normal Text>fg</Normal Text><Escape>\b</Escape><Normal Text>hh</Normal Text><Escape>\</Escape><Normal Text>%j</Normal Text><Escape>\$</Escape><Normal Text>k</Normal Text><Escape>\\</Escape><Normal Text>l</Normal Text><Escape>\?</Escape><Normal Text>sed</Normal Text><Escape>\*</Escape><Normal Text>jk</Normal Text><Escape>\></Escape><Normal Text>hj</Normal Text><Escape>\<</Escape><Normal Text>hou</Normal Text><Escape>\&</Escape><Normal Text>h</Normal Text><Escape>\;</Escape><Normal Text>hgkj</Normal Text><Escape>\</Escape><Normal Text>^kj</Normal Text><Escape>\"</Escape><Normal Text>kjh</Normal Text><Escape>\'</Escape><Normal Text>jhg</Normal Text><br/>
<UnixCommand>touch</UnixCommand><Normal Text> sdf</Normal Text><Escape>\xa5</Escape><Normal Text>lh</Normal Text><Escape>\Xb7</Escape><Normal Text>kll</Normal Text><Escape>\157</Escape><Normal Text>j</Normal Text><Escape>\15</Escape><Normal Text>8hk</Normal Text><Escape>\ua47b</Escape><Normal Text>z</Normal Text><Escape>\U123b5678</Escape><Normal Text>fs</Normal Text><Escape>\cx</Escape><Normal Text>zdfga</Normal Text><br/>
<Normal Text></Normal Text><br/>
<UnixCommand>touch</UnixCommand><Normal Text> </Normal Text><String DoubleQ>"a\?bc\[\]a"</String DoubleQ><Normal Text>      </Normal Text><Comment># no escaping in Quotes</Comment><br/>
<UnixCommand>touch</UnixCommand><Normal Text> fgh</Normal Text><Escape>\</Escape><Normal Text>y1            </Normal Text><Comment># \y is no escape sequence in fish, show it as normal text like fish itself</Comment><br/>
<Normal Text></Normal Text><br/>
<Comment>### Builtins</Comment><br/>
<Builtin>. </Builtin><Normal Text>hallo</Normal Text><br/>
<Builtin>source</Builtin><Normal Text> hallo </Normal Text><br/>
<Builtin>eval</Builtin><Normal Text> </Normal Text><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>.</Path><Normal Text> </Normal Text><Path>/tmp</Path><br/>
<Builtin>eval</Builtin><Normal Text> </Normal Text><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>.../tmp</Path><br/>
<Builtin>eval</Builtin><Normal Text> </Normal Text><Variable>$var</Variable><br/>
<Builtin>eval</Builtin><Normal Text> </Normal Text><Command>abc</Command><br/>
<Builtin>eval</Builtin><Normal Text> </Normal Text><Keychar>{</Keychar><Normal Text>l</Normal Text><Separator>,</Separator><Normal Text>a</Normal Text><Keychar>}</Keychar><Command>s</Command><Normal Text>  </Normal Text><Comment># lists ./as. colours not ok, but we cut here</Comment><br/>
<Builtin>eval</Builtin><Normal Text> </Normal Text><String DoubleQ>"echo bla"</String DoubleQ><br/>
<Normal Text></Normal Text><br/>
<Builtin>history</Builtin><Normal Text> merge</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Builtin>true</Builtin><Normal Text> </Normal Text><Separator>;</Separator><UnixCommand>ls</UnixCommand><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>true</Builtin><Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>true</Builtin><Normal Text> </Normal Text><Comment>#comment)</Comment><br/>
<UnixCommand>ls</UnixCommand><Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>true</Builtin><Redirection>>></Redirection><Path>xyz/abc</Path><Keychar>)</Keychar><br/>
<Builtin>true</Builtin><Normal Text> </Normal Text><Error>-error</Error><Normal Text>     </Normal Text><Comment># show error</Comment><br/>
<Builtin>pwd</Builtin><Normal Text> </Normal Text><Redirection>></Redirection><Normal Text> </Normal Text><Path>abc</Path><br/>
<Normal Text></Normal Text><br/>
<Builtin>command</Builtin><Normal Text> </Normal Text><Option>-s</Option><Normal Text> </Normal Text><UnixCommand>ls</UnixCommand><Separator>;</Separator><UnixCommand>cat</UnixCommand><Normal Text> test</Normal Text><br/>
<Builtin>builtin</Builtin><Normal Text> </Normal Text><Option>-n</Option><Separator>;</Separator><Builtin>builtin</Builtin><Normal Text> </Normal Text><Builtin>echo</Builtin><br/>
<Normal Text></Normal Text><br/>
<Builtin>complete</Builtin><Normal Text> </Normal Text><Option>-c</Option><Normal Text> myprog </Normal Text><Option>-s</Option><Normal Text> o </Normal Text><Option>-l</Option><Normal Text> output </Normal Text><Option>-a</Option><Normal Text> </Normal Text><String DoubleQ>"yes no"</String DoubleQ><br/>
<Builtin>builtin</Builtin><Normal Text> </Normal Text><Builtin>jobs</Builtin><br/>
<Normal Text></Normal Text><br/>
<Builtin>math</Builtin><Normal Text> </Normal Text><Option>-s0</Option><Normal Text> 10.0 </Normal Text><Path>/</Path><Normal Text> 6.0</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>#special keywords as directory names:</Comment><br/>
<CommandPath>/usr/function/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/function/testtest</Path><br/>
<CommandPath>/usr/for/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/for/testtest</Path><br/>
<CommandPath>/usr/begin/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/begin/testtest</Path><br/>
<CommandPath>/usr/switch/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/switch/testtest</Path><br/>
<CommandPath>/usr/if/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/if/testtest</Path><br/>
<CommandPath>/usr/while/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/while/testtest</Path><br/>
<CommandPath>/usr/command/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/command/testtest</Path><br/>
<CommandPath>/usr/builtin/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/builtin/testtest</Path><br/>
<CommandPath>/usr/eval/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/eval/testtest</Path><br/>
<CommandPath>/usr/exec/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/exec/testtest</Path><br/>
<CommandPath>/usr/set/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/set/testtest</Path><br/>
<CommandPath>/usr/test/</CommandPath><Command>testtest</Command><Normal Text> </Normal Text><Path>/usr/test/testtest</Path><br/>
<Normal Text></Normal Text><br/>
<Comment>### test</Comment><br/>
<Builtin>test</Builtin><Normal Text> NUM1 </Normal Text><Operator>-eq</Operator><Normal Text> NUM2</Normal Text><br/>
<Builtin>test</Builtin><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>/tmp/abc</Path><Normal Text> </Normal Text><Operator>-a</Operator><Normal Text> </Normal Text><Operator>-e</Operator><Normal Text> </Normal Text><Path>/tmp/def</Path><Separator>;</Separator><UnixCommand>cat</UnixCommand><Normal Text> </Normal Text><Path>/tmp/abc</Path><Separator>;</Separator><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>test</Builtin><Normal Text> </Normal Text><Escape>\(</Escape><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>/foo</Path><Normal Text> </Normal Text><Operator>-o</Operator><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>/bar</Path><Normal Text> </Normal Text><Escape>\)</Escape><Normal Text> </Normal Text><Operator>-a</Operator><Normal Text> </Normal Text><Escape>\(</Escape><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>/baz</Path><Normal Text> </Normal Text><Operator>-o</Operator><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>/bat</Path><Normal Text> </Normal Text><Escape>\)</Escape><br/>
<Normal Text>    </Normal Text><Builtin>echo</Builtin><Normal Text> Success.</Normal Text><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Builtin>[ </Builtin><Normal Text>25 </Normal Text><Operator>-eq</Operator><Normal Text> </Normal Text><Variable>$NUM2</Variable><Normal Text> </Normal Text><Builtin>]</Builtin><br/>
<Builtin>[ </Builtin><String DoubleQ>"abc"</String DoubleQ><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><String DoubleQ>"</String DoubleQ><Variable>$STRING2</Variable><String DoubleQ>"</String DoubleQ><Normal Text> </Normal Text><Builtin>]</Builtin><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>[ </Builtin><Operator>!</Operator><Normal Text> </Normal Text><Escape>\(</Escape><Normal Text>STRING1 </Normal Text><Operator>!=</Operator><Normal Text> STRING2</Normal Text><Escape>\)</Escape><Normal Text> </Normal Text><Builtin>]</Builtin><Separator>;</Separator><UnixCommand>ls</UnixCommand><Separator>;</Separator><Control Flow>end</Control Flow><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>[ </Builtin><Operator>-f</Operator><Normal Text> </Normal Text><Path>abc</Path><Normal Text> ]# show error</Normal Text><br/>
<Control Flow>end</Control Flow><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>[ </Builtin><Operator>-f</Operator><Normal Text> </Normal Text><Path>abc</Path><Normal Text> </Normal Text><Builtin>]</Builtin><Normal Text> </Normal Text><Comment># ok</Comment><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>[ </Builtin><Operator>!</Operator><Normal Text> </Normal Text><Escape>\(</Escape><Normal Text>STRING1 </Normal Text><Operator>!=</Operator><Normal Text> STRING2</Normal Text><Escape>\)</Escape><Normal Text> </Normal Text><Builtin>]</Builtin><Normal Text> </Normal Text><Error>ls</Error><Separator>;</Separator><Control Flow>end</Control Flow><Normal Text> </Normal Text><Comment># show error</Comment><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>[ </Builtin><String DoubleQ>"abc"</String DoubleQ><Normal Text> </Normal Text><Operator>!=</Operator><Normal Text> </Normal Text><String DoubleQ>"def"</String DoubleQ><Normal Text> </Normal Text><Builtin>]</Builtin><Normal Text> </Normal Text><Comment># hallo</Comment><br/>
<Normal Text>   </Normal Text><Builtin>echo</Builtin><Normal Text> x</Normal Text><Separator>;</Separator><Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Comment>### Redirections</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection><</Redirection><Normal Text> </Normal Text><Path>SOURCE_FILE</Path><Normal Text>        </Normal Text><Comment># stdin</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>></Redirection><Normal Text> </Normal Text><Path>DESTINATION</Path><Normal Text>        </Normal Text><Comment># stdout</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>>></Redirection><Normal Text> </Normal Text><Path>DESTINATION_FILE</Path><Normal Text>  </Normal Text><Comment># append</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>>?</Redirection><Normal Text> </Normal Text><Path>DESTINATION</Path><Normal Text>       </Normal Text><Comment># noclobber</Comment><br/>
<Normal Text></Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> ^ DESTINATION        </Normal Text><Comment># removed since 3.5.0 (released June 16, 2022)</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> ^^ DESTINATION_FILE  </Normal Text><Comment># removed since 3.5.0 (released June 16, 2022)</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>^</Path><Glob>?</Glob><Normal Text> DESTINATION       </Normal Text><Comment># removed since 3.5.0 (released June 16, 2022)</Comment><br/>
<Normal Text></Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>></Redirection><Normal Text> </Normal Text><Variable>$abc</Variable><Index>[5]</Index><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>></Redirection><String DoubleQ>"abc"</String DoubleQ><Path>/defg</Path><Variable>$v</Variable><Path>/xyz</Path><br/>
<Normal Text></Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>></Redirection><Error>&</Error><Normal Text>                   </Normal Text><Error>#</Error><Comment> show error</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>></Redirection><Normal Text> </Normal Text><Error>&</Error><Command>1</Command><Normal Text>                 </Normal Text><Comment># show error</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> abc</Normal Text><Redirection>>&25</Redirection><Normal Text> xyz </Normal Text><Path>/tmp/xyz</Path><Normal Text> </Normal Text><Variable>$abc</Variable><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>/tmp/tst</Path><Redirection>>&25</Redirection><Glob>?</Glob><Normal Text>        </Normal Text><Comment># show error</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>/tmp/tst</Path><Redirection>>&25</Redirection><Normal Text> </Normal Text><Glob>?</Glob><Normal Text>       </Normal Text><Comment># ok</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>3>&-</Redirection><Normal Text> xyz</Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>1<</Redirection><Path>DESTINATION</Path><br/>
<Builtin>echo</Builtin><Normal Text> Hello </Normal Text><Redirection>></Redirection><Normal Text> </Normal Text><Path>all_output.txt</Path><Normal Text> </Normal Text><Redirection>>?</Redirection><Normal Text> </Normal Text><Path>xyz</Path><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>2>&-</Redirection><Separator>;</Separator><Builtin>echo</Builtin><Normal Text> end</Normal Text><br/>
<UnixCommand>ls</UnixCommand><Normal Text> xyz </Normal Text><Redirection>2>|</Redirection><UnixCommand>cat</UnixCommand><br/>
<Builtin>echo</Builtin><Normal Text> sd</Normal Text><String SingleQ>'ds'</String SingleQ><Normal Text> </Normal Text><Redirection>1>&2</Redirection><br/>
<Builtin>echo</Builtin><Normal Text> sd</Normal Text><String SingleQ>'ds'</String SingleQ><Normal Text>1</Normal Text><Redirection>>&2</Redirection><br/>
<Normal Text></Normal Text><br/>
<UnixCommand>ls</UnixCommand><Redirection>></Redirection><Path>x</Path><br/>
<Command>abs</Command><Redirection>></Redirection><Path>x</Path><br/>
<CommandPath>/bin/</CommandPath><UnixCommand>ls</UnixCommand><Redirection>></Redirection><Path>x</Path><br/>
<CommandPath>/bin/</CommandPath><Command>abs</Command><Redirection>></Redirection><Path>x</Path><br/>
<Normal Text></Normal Text><br/>
<Comment>### Quoting</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String SingleQ>'abcdefg'</String SingleQ><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String SingleQ>'abc</String SingleQ><Escape>\'</Escape><String SingleQ>de</String SingleQ><Escape>\\</Escape><String SingleQ>fg'</String SingleQ><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String SingleQ>'abc\defg'</String SingleQ><br/>
<Normal Text></Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String DoubleQ>"1</String DoubleQ><Escape>\"</Escape><String DoubleQ>23</String DoubleQ><Escape>\$</Escape><String DoubleQ>45</String DoubleQ><Escape>\\</Escape><String DoubleQ>6"</String DoubleQ><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String SingleQ>'1\"23\$45</String SingleQ><Escape>\\</Escape><String SingleQ>6'</String SingleQ><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String SingleQ>'</String SingleQ><br/>
<String SingleQ>hallo</String SingleQ><br/>
<String SingleQ>'</String SingleQ><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String DoubleQ>"</String DoubleQ><Variable>$i</Variable><String DoubleQ>: '</String DoubleQ><Variable>$$name</Variable><Index>[1][</Index><Variable>$i</Variable><Index>]</Index><String DoubleQ>'"</String DoubleQ><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment>### Piping, Pipelines and background jobs</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Path>/tmp/hello</Path><Normal Text> </Normal Text><Redirection>1<</Redirection><Path>DEST</Path><Separator>|</Separator><Normal Text> </Normal Text><UnixCommand>sort</UnixCommand><br/>
<Command>comand_1</Command><Separator>;</Separator><Command>command_2</Command><br/>
<Command>comand_1</Command><Normal Text> </Normal Text><Separator>;</Separator><Command>command_2</Command><br/>
<UnixCommand>ls</UnixCommand><Separator>;</Separator><UnixCommand>ls</UnixCommand><br/>
<Command>run_long_job</Command><Normal Text> </Normal Text><Separator>&</Separator><Normal Text> </Normal Text><UnixCommand>ls</UnixCommand><Normal Text>  </Normal Text><Comment># yes & is a command sequencing operator like | and ;</Comment><br/>
<UnixCommand>cat</UnixCommand><Normal Text> foo.txt </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><UnixCommand>head</UnixCommand><br/>
<UnixCommand>make</UnixCommand><Normal Text> fish </Normal Text><Redirection>2>|</Redirection><Normal Text> </Normal Text><UnixCommand>less</UnixCommand><Normal Text> </Normal Text><Comment>#show error</Comment><br/>
<Normal Text></Normal Text><br/>
<Comment>### Variable Expansion</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[1..3]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[-1..3 5 9..15]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[</Index><Variable>$n</Variable><Index>[2]]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Index>[1..</Index><Variable>$n</Variable><Index>]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Index>[</Index><Variable>$n</Variable><Index>..1]</Index><br/>
<Builtin>echo</Builtin><Normal Text> The plural of </Normal Text><Variable>$WORD</Variable><Normal Text> is </Normal Text><String DoubleQ>"</String DoubleQ><Variable>$WORD</Variable><String DoubleQ>"</String DoubleQ><Normal Text>s</Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> The plural of </Normal Text><Variable>$WORD</Variable><Normal Text> is </Normal Text><Keychar>{</Keychar><Variable>$WORD</Variable><Keychar>}</Keychar><Normal Text>s</Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$$foo</Variable><Index>[</Index><Variable>$i</Variable><Index>]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Index>[</Index><Keychar>(</Keychar><Builtin>count</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Keychar>)</Keychar><Index>..1]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Index>[1..</Index><Keychar>(</Keychar><Builtin>count</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Index>[3]</Index><Keychar>)</Keychar><Index>]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$$foo</Variable><Index>[1..-1][5]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$$foo</Variable><Index>[1..-1]</Index><Escape>\</Escape><br/>
<Index>[5][2]</Index><Escape>\</Escape><br/>
<Index>[5]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$</Variable><Error>$</Error><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$$$$</Variable><Error>$</Error><br/>
<Normal Text></Normal Text><br/>
<Normal Text> </Normal Text><Comment>#show error</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[</Index><Error>e</Error><Normal Text>rror</Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[1..</Index><Error>e</Error><Normal Text>rror]</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[1 2 34 ]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[1.. 2]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[1 ..2]</Index><br/>
<Normal Text></Normal Text><br/>
<Comment>### Brace Expansion</Comment><br/>
<Builtin>echo</Builtin><Normal Text> input.</Normal Text><Keychar>{</Keychar><Normal Text>c</Normal Text><Separator>,</Separator><Normal Text>12h</Normal Text><Separator>,</Separator><Normal Text>TXT</Normal Text><Keychar>}</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> input.</Normal Text><Keychar>{</Keychar><Normal Text>abc</Normal Text><Variable>$test</Variable><Index>[</Index><Keychar>(</Keychar><Builtin>count</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Keychar>)</Keychar><Index>..1]</Index><Separator>,</Separator><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$txt</Variable><Keychar>)}</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> input.</Normal Text><Keychar>{</Keychar><Normal Text>a</Normal Text><Keychar>{</Keychar><Normal Text>b</Normal Text><Separator>,</Separator><Normal Text>c</Normal Text><Keychar>}</Keychar><Separator>,</Separator><Normal Text>12h</Normal Text><Separator>,</Separator><Normal Text>TXT</Normal Text><Keychar>}</Keychar><Error>}</Error><Normal Text>  </Normal Text><Comment># show error</Comment><br/>
<Normal Text></Normal Text><br/>
<Comment>### Index range expansion</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$a</Variable><Keychar>)</Keychar><Index>[2..5]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$a</Variable><Keychar>)</Keychar><Index>[2..5 1..3]</Index><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$a</Variable><Keychar>)</Keychar><Index>[-1..1]</Index><br/>
<Normal Text></Normal Text><br/>
<Comment>### Process expansion</Comment><br/>
<Builtin>echo</Builtin><Normal Text> %ema  </Normal Text><Comment># removed (expect %self) since 3.0b1 (released December 11, 2018)</Comment><br/>
<Builtin>echo</Builtin><Normal Text> %self </Normal Text><Comment># removed since 4.0.0 (released February 27, 2025)</Comment><br/>
<Normal Text></Normal Text><br/>
<Comment>### Command substitution</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Option>-n</Option><Normal Text> </Normal Text><Option>-s</Option><Normal Text> </Normal Text><String DoubleQ>"</String DoubleQ><Variable>$USER</Variable><String DoubleQ>"</String DoubleQ><Normal Text> @ </Normal Text><String DoubleQ>"</String DoubleQ><Variable>$__fish_prompt_hostname</Variable><String DoubleQ>"</String DoubleQ><Normal Text> </Normal Text><String SingleQ>' '</String SingleQ><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>set_color</Builtin><Normal Text> </Normal Text><Variable>$color_cwd</Variable><Keychar>)</Keychar><Normal Text> </Normal Text><Keychar>(</Keychar><CommandPath>/usr/bin/</CommandPath><UnixCommand>ls</UnixCommand><Keychar>)</Keychar><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>set_color</Builtin><Normal Text> normal</Normal Text><Keychar>)</Keychar><Normal Text> </Normal Text><br/>
<Normal Text></Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Comment>#hallo)abc</Comment><br/>
<Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Comment>#hallo)abc</Comment><br/>
<Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>ls</UnixCommand><Separator>;</Separator><Comment>#hallo)abc</Comment><br/>
<Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Command>ls#hallo</Command><Keychar>)</Keychar><Normal Text>abc    </Normal Text><Comment># ok: # may be inner part of function names!</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><CommandPath>/usr/bin/</CommandPath><UnixCommand>ls</UnixCommand><Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Redirection>>></Redirection><Path>mem/abc</Path><Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test</Variable><Index>[2]</Index><Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><CommandPath>/usr</CommandPath><String DoubleQ>"/bi"</String DoubleQ><CommandPath>n/</CommandPath><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>/tmp</Path><Keychar>)</Keychar><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>seq</UnixCommand><Normal Text> 10</Normal Text><Keychar>)</Keychar><Index>[1][2]</Index><br/>
<Comment>#               ~~~ not an index</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>seq</UnixCommand><Normal Text> 10</Normal Text><Keychar>)</Keychar><Escape>\</Escape><br/>
<Index>[1][2]</Index><br/>
<Comment>#  ~~~ not an index</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>seq</UnixCommand><Normal Text> 10</Normal Text><Keychar>)</Keychar><Escape>\</Escape><br/>
<Index>[1]</Index><Escape>\</Escape><br/>
<Index>[2]</Index><br/>
<Comment>#~~ not an index</Comment><br/>
<Normal Text></Normal Text><br/>
<Comment># multline command substitution</Comment><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>x</Variable><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> dirlist</Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Comment># blabla</Comment><br/>
<Normal Text>       </Normal Text><UnixCommand>ls</UnixCommand><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Variable>pi</Variable><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>math</Builtin><Normal Text> </Normal Text><String DoubleQ>"scale=10; 4*a(1)"</String DoubleQ><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Comment>### Continuation lines</Comment><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>  </Normal Text><Path>/usr/bin</Path><br/>
<Normal Text></Normal Text><br/>
<Builtin>test</Builtin><Normal Text> </Normal Text><String DoubleQ>"STRING1"</String DoubleQ><Normal Text>=</Normal Text><String DoubleQ>"STRING2"</String DoubleQ><Normal Text> </Normal Text><Operator>-a</Operator><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>     </Normal Text><String DoubleQ>"STRING3"</String DoubleQ><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>echo</Builtin><Normal Text> </Normal Text><String DoubleQ>"STRING4"</String DoubleQ><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> input.</Normal Text><Keychar>{</Keychar><Normal Text>abc</Normal Text><Escape>\</Escape><br/>
<Separator>,</Separator><Normal Text>12h</Normal Text><Separator>,</Separator><Escape>\</Escape><br/>
<Normal Text>TXT</Normal Text><Keychar>}</Keychar><br/>
<Normal Text></Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Escape>\</Escape><br/>
<Normal Text>      </Normal Text><UnixCommand>ls</UnixCommand><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Comment># no line continuation within single quotes</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String SingleQ>'abcdefg\</String SingleQ><br/>
<String SingleQ>       s$dfg sdf'</String SingleQ><br/>
<Comment># but within double quotes</Comment><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String DoubleQ>"123456</String DoubleQ><Escape>\</Escape><br/>
<String DoubleQ>      78910"</String DoubleQ><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$PATH</Variable><Index>[1..3</Index><Escape>\</Escape><br/>
<Index>          ]</Index><br/>
<UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>/usr</Path><Escape>\</Escape><br/>
<Path>local/bin</Path><br/>
<Builtin>echo</Builtin><Normal Text> foo</Normal Text><Escape>\ </Escape><Normal Text>bar</Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> foo</Normal Text><Escape>\</Escape><br/>
<Normal Text>bar</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Control Flow>for</Control Flow><Normal Text> </Normal Text><Variable>i</Variable><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>    </Normal Text><Keyword>in</Keyword><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>    a b c</Normal Text><br/>
<Normal Text>    </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$i</Variable><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Comment># Bug?</Comment><br/>
<Comment># Depending on weakDeliminators, either this works:</Comment><br/>
<Command>cat\ alog</Command><Normal Text> </Normal Text><Option>-abc</Option><br/>
<Comment># or this:</Comment><br/>
<Command>builtin</Command><Escape>\</Escape><br/>
<Normal Text> </Normal Text><Option>--names</Option><Normal Text> jobs</Normal Text><br/>
<Builtin>builtin</Builtin><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Option>--names</Option><Normal Text> </Normal Text><Builtin>jobs</Builtin><br/>
<Normal Text></Normal Text><br/>
<Builtin>command</Builtin><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>   </Normal Text><UnixCommand>ls</UnixCommand><br/>
<Normal Text></Normal Text><br/>
<Builtin>eval</Builtin><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>   </Normal Text><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Path>.</Path><Normal Text> </Normal Text><Path>/tmp</Path><br/>
<Command>eval</Command><Escape>\</Escape><br/>
<Normal Text>   ls </Normal Text><Path>.../tmp</Path><br/>
<Normal Text></Normal Text><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>  </Normal Text><Option>-e</Option><Normal Text> </Normal Text><Variable>i</Variable><Index>[-1]</Index><br/>
<Builtin>set</Builtin><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>   </Normal Text><Variable>test1</Variable><Index>[-1..1]</Index><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>   </Normal Text><Variable>$test</Variable><Separator>;</Separator><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>   </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$test1</Variable><br/>
<Normal Text></Normal Text><br/>
<Builtin>read</Builtin><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>  </Normal Text><Option>-gi</Option><Normal Text> </Normal Text><Variable>test</Variable><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment># see https://github.com/fish-shell/fish-shell/pull/1987</Comment><br/>
<Builtin>echo</Builtin><Normal Text> before comment </Normal Text><Escape>\</Escape><br/>
<Normal Text>  </Normal Text><Comment># comment</Comment><br/>
<Normal Text>  </Normal Text><Comment># comment2</Comment><br/>
<Normal Text>  after comment </Normal Text><Comment># just another argument</Comment><br/>
<Builtin>echo</Builtin><Normal Text> before comment</Normal Text><Escape>\</Escape><br/>
<Normal Text>  </Normal Text><Comment># comment        ^ no space</Comment><br/>
<Normal Text>  </Normal Text><Comment># comment2</Comment><br/>
<Normal Text>  </Normal Text><Command>after</Command><Normal Text> comment </Normal Text><Comment># a command</Comment><br/>
<Command>from</Command><Normal Text> root</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Builtin>echo</Builtin><Normal Text> </Normal Text><String DoubleQ>"hello"</String DoubleQ><Normal Text> </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Comment>#remove 'l'</Comment><br/>
<Comment>#and more</Comment><br/>
<UnixCommand>tr</UnixCommand><Normal Text> </Normal Text><Option>-d</Option><Normal Text> </Normal Text><String SingleQ>'l'</String SingleQ><br/>
<Normal Text></Normal Text><br/>
<Comment>### Trouble</Comment><br/>
<UnixCommand>make</UnixCommand><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>and</Control Flow><Normal Text> </Normal Text><UnixCommand>make</UnixCommand><Normal Text> install</Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>or</Control Flow><Normal Text> </Normal Text><UnixCommand>make</UnixCommand><Normal Text> clean              </Normal Text><Comment># ok</Comment><br/>
<Builtin>printf</Builtin><Normal Text> </Normal Text><String SingleQ>'%s\t%s\n'</String SingleQ><Normal Text> flounder fish                    </Normal Text><Comment># ok</Comment><br/>
<UnixCommand>diff</UnixCommand><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>sort</UnixCommand><Normal Text> a.txt </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><Builtin>psub</Builtin><Keychar>)</Keychar><Normal Text> </Normal Text><Keychar>(</Keychar><UnixCommand>sort</UnixCommand><Normal Text> b.txt </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><Builtin>psub</Builtin><Keychar>)</Keychar><br/>
<Command>source-highlight</Command><Normal Text> </Normal Text><Option>-f</Option><Normal Text> esc </Normal Text><Keychar>(</Keychar><UnixCommand>cpp</UnixCommand><Normal Text> main.c </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><Builtin>psub</Builtin><Normal Text> </Normal Text><Option>-s</Option><Normal Text> .c</Normal Text><Keychar>)</Keychar><br/>
<Normal Text></Normal Text><br/>
<Control Flow>while</Control Flow><Normal Text> </Normal Text><Builtin>test</Builtin><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>foo.txt</Path><Normal Text>  </Normal Text><Comment># comment</Comment><br/>
<Normal Text>  </Normal Text><Builtin>echo</Builtin><Normal Text> hallo</Normal Text><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>for</Control Flow><Normal Text> </Normal Text><Variable>i</Variable><Normal Text> </Normal Text><Keyword>in</Keyword><Normal Text> </Normal Text><Keychar>{</Keychar><Normal Text>1</Normal Text><Separator>,</Separator><Keychar>(</Keychar><UnixCommand>ls</UnixCommand><Keychar>)</Keychar><Separator>,</Separator><Normal Text>3</Normal Text><Keychar>}</Keychar><Normal Text>    </Normal Text><Comment># comment</Comment><br/>
<Normal Text>  </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$i</Variable><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Comment># function</Comment><br/>
<Keyword>function</Keyword><Normal Text> </Normal Text><Command>__hidden</Command><Normal Text>      </Normal Text><Comment># comment</Comment><br/>
<Normal Text>  </Normal Text><Builtin>cd</Builtin><Normal Text> </Normal Text><Path>/</Path><br/>
<Keyword>end</Keyword><br/>
<Normal Text></Normal Text><br/>
<Keyword>function</Keyword><Normal Text> </Normal Text><Command>ll</Command><Normal Text> </Normal Text><Escape>\</Escape><br/>
<Normal Text>  </Normal Text><Option>-d </Option><Function Doc>"multiline</Function Doc><br/>
<Function Doc>  description"</Function Doc><br/>
<Normal Text>    </Normal Text><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>-l</Option><Normal Text> </Normal Text><Variable>$argv</Variable><br/>
<Keyword>end</Keyword><br/>
<Normal Text></Normal Text><br/>
<Keyword>function</Keyword><Normal Text> </Normal Text><Command>ll</Command><Normal Text> </Normal Text><Option>--description</Option><Function Doc> "description"</Function Doc><br/>
<Keyword>end</Keyword><br/>
<Normal Text></Normal Text><br/>
<Keyword>function</Keyword><Normal Text> </Normal Text><Command>ll</Command><Normal Text> </Normal Text><Option>-d</Option><Escape>\</Escape><br/>
<Function Doc>  </Function Doc><Comment># <- close description</Comment><br/>
<Keyword>end</Keyword><br/>
<Normal Text></Normal Text><br/>
<Keyword>function</Keyword><Normal Text> </Normal Text><Command>ls</Command><Normal Text> </Normal Text><Option>--description=</Option><Function Doc>"Description"</Function Doc><Normal Text> </Normal Text><Option>-a</Option><Normal Text> a b c </Normal Text><Comment># comment</Comment><br/>
<Normal Text>    </Normal Text><Builtin>command</Builtin><Normal Text> </Normal Text><UnixCommand>ls</UnixCommand><Normal Text> </Normal Text><Option>--color</Option><Operator>=</Operator><Normal Text>auto </Normal Text><Variable>$argv</Variable><br/>
<Normal Text>    </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>test</Builtin><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>foo.txt</Path><br/>
<Normal Text>        </Normal Text><Builtin>echo</Builtin><Normal Text> foo.txt exists</Normal Text><br/>
<Normal Text>    </Normal Text><Control Flow>else</Control Flow><Normal Text> </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>test</Builtin><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>bar.txt</Path><Normal Text>          </Normal Text><Comment># comment</Comment><br/>
<Normal Text>        </Normal Text><Builtin>echo</Builtin><Normal Text> bar.txt exists</Normal Text><br/>
<Normal Text>    </Normal Text><Control Flow>else</Control Flow><br/>
<Normal Text>        </Normal Text><Builtin>echo</Builtin><Normal Text> foo.txt and bar.txt do not exist</Normal Text><br/>
<Normal Text>    </Normal Text><Control Flow>end</Control Flow><Normal Text>                              </Normal Text><Comment># comment</Comment><br/>
<Keyword>end</Keyword><br/>
<Normal Text></Normal Text><br/>
<Keyword>function</Keyword><Normal Text> </Normal Text><Command>test</Command><Separator>;</Separator><Builtin>echo</Builtin><Normal Text> hallo</Normal Text><Separator>;</Separator><Keyword>end</Keyword><Normal Text>         </Normal Text><Comment># comment</Comment><br/>
<Normal Text></Normal Text><br/>
<Control Flow>switch</Control Flow><Normal Text> </Normal Text><Variable>$animal</Variable><Normal Text>   </Normal Text><Comment># comment</Comment><br/>
<Normal Text>    </Normal Text><Control Flow>case</Control Flow><Normal Text> cat     </Normal Text><Comment># comment</Comment><br/>
<Normal Text>        </Normal Text><Builtin>echo</Builtin><Normal Text> evil</Normal Text><br/>
<Normal Text>    </Normal Text><Control Flow>case</Control Flow><Normal Text> wolf </Normal Text><Escape>\</Escape><br/>
<Normal Text>        dog</Normal Text><br/>
<Normal Text>        </Normal Text><Builtin>echo</Builtin><Normal Text> mammal</Normal Text><br/>
<Normal Text>    </Normal Text><Control Flow>case</Control Flow><Normal Text> </Normal Text><String SingleQ>'*'</String SingleQ><br/>
<Normal Text>        </Normal Text><Builtin>echo</Builtin><Normal Text> I have no idea what a </Normal Text><Variable>$animal</Variable><Normal Text> is</Normal Text><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>test</Builtin><Normal Text> </Normal Text><Keychar>(</Keychar><Builtin>count</Builtin><Normal Text> </Normal Text><Variable>$argv</Variable><Keychar>)</Keychar><Normal Text> </Normal Text><Operator>=</Operator><Normal Text> 1</Normal Text><br/>
<Normal Text>  </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><Variable>$argv</Variable><br/>
<Control Flow>else</Control Flow><br/>
<Normal Text>  </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><String DoubleQ>"?"</String DoubleQ><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Control Flow>not</Control Flow><Normal Text> </Normal Text><Builtin>test</Builtin><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Path>spoon</Path><Normal Text>   </Normal Text><Comment>#comment</Comment><br/>
<Normal Text>  </Normal Text><Builtin>echo</Builtin><Normal Text> There is no spoon</Normal Text><br/>
<Control Flow>else</Control Flow><br/>
<Normal Text>  </Normal Text><Builtin>exit</Builtin><Normal Text> 1</Normal Text><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>for</Control Flow><Normal Text> </Normal Text><Variable>file</Variable><Normal Text> </Normal Text><Keyword>in</Keyword><Normal Text> </Normal Text><Variable>$cfgfiles</Variable><br/>
<Normal Text>    </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>test</Builtin><Normal Text> </Normal Text><Operator>-f</Operator><Normal Text> </Normal Text><Variable>$file</Variable><br/>
<Normal Text>        </Normal Text><Builtin>string</Builtin><Normal Text> </Normal Text><Builtin>match</Builtin><Normal Text> </Normal Text><Option>-r</Option><Normal Text> </Normal Text><String SingleQ>'\[Dialer'</String SingleQ><Normal Text> </Normal Text><Redirection><</Redirection><Normal Text> </Normal Text><Variable>$file</Variable><Normal Text> </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><Builtin>string</Builtin><Normal Text> </Normal Text><Builtin>replace</Builtin><Normal Text> </Normal Text><Option>-r</Option><Normal Text> </Normal Text><String SingleQ>'\[Dialer (.+)\]'</String SingleQ><Normal Text> </Normal Text><String SingleQ>'$1'</String SingleQ><br/>
<Normal Text>    </Normal Text><Control Flow>end</Control Flow><br/>
<Control Flow>end</Control Flow><Normal Text> </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><UnixCommand>sort</UnixCommand><Normal Text> </Normal Text><Option>-u</Option><Normal Text> </Normal Text><Separator>|</Separator><Normal Text> </Normal Text><Builtin>string</Builtin><Normal Text> </Normal Text><Builtin>match</Builtin><Normal Text> </Normal Text><Option>-v</Option><Normal Text> Defaults</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Control Flow>for</Control Flow><Normal Text> </Normal Text><Variable>i</Variable><Normal Text> </Normal Text><Keyword>in</Keyword><Normal Text> </Normal Text><Glob>*</Glob><Path>.c</Path><br/>
<Normal Text>    </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><UnixCommand>grep</UnixCommand><Normal Text> smurf </Normal Text><Variable>$i</Variable><Normal Text>     </Normal Text><Comment># comment</Comment><br/>
<Normal Text>        </Normal Text><Builtin>echo</Builtin><Normal Text> Smurfs are present in </Normal Text><Variable>$i</Variable><br/>
<Normal Text>        </Normal Text><Control Flow>break</Control Flow><br/>
<Normal Text>    </Normal Text><Control Flow>end</Control Flow><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Keyword>begin</Keyword><Normal Text> </Normal Text><Builtin>contains</Builtin><Normal Text> </Normal Text><Option>--</Option><Normal Text> </Normal Text><Variable>$argv</Variable><Normal Text> </Normal Text><Option>--force</Option><Normal Text>   </Normal Text><Comment># ohne ; nach begin: geht</Comment><br/>
<Normal Text>        </Normal Text><Control Flow>or</Control Flow><Normal Text> </Normal Text><Control Flow>not</Control Flow><Normal Text> </Normal Text><Builtin>status</Builtin><Normal Text> </Normal Text><Option>--is-interactive</Option><Normal Text> and not status </Normal Text><Option>--is-login</Option><br/>
<Normal Text>    </Normal Text><Keyword>end</Keyword><br/>
<Normal Text>    </Normal Text><Builtin>echo</Builtin><Normal Text> </Normal Text><String DoubleQ>""</String DoubleQ><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Keyword>begin</Keyword><Normal Text>                    </Normal Text><Comment># comment</Comment><br/>
<Normal Text>  </Normal Text><Control Flow>for</Control Flow><Normal Text> </Normal Text><Variable>i</Variable><Normal Text> </Normal Text><Keyword>in</Keyword><Normal Text> </Normal Text><Glob>*</Glob><Path>.tmp</Path><br/>
<Normal Text>      </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><UnixCommand>grep</UnixCommand><Normal Text> smurf </Normal Text><Variable>$i</Variable><br/>
<Normal Text>          </Normal Text><Control Flow>continue</Control Flow><br/>
<Normal Text>      </Normal Text><Control Flow>end</Control Flow><br/>
<Normal Text>      </Normal Text><UnixCommand>rm</UnixCommand><Normal Text> </Normal Text><Variable>$i</Variable><br/>
<Normal Text>  </Normal Text><Control Flow>end</Control Flow><br/>
<Keyword>end</Keyword><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Builtin>[ </Builtin><Variable>$status</Variable><Normal Text> </Normal Text><Operator>-eq</Operator><Normal Text> 1 </Normal Text><Builtin>]</Builtin><br/>
<Normal Text>	</Normal Text><Builtin>set</Builtin><Normal Text> </Normal Text><Variable>sta</Variable><Normal Text> pass</Normal Text><br/>
<Control Flow>else</Control Flow><br/>
<Normal Text>	</Normal Text><Builtin>set</Builtin><Normal Text> </Normal Text><Variable>sta</Variable><Normal Text> fail</Normal Text><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Builtin>exec</Builtin><Normal Text> </Normal Text><String DoubleQ>"</String DoubleQ><Variable>$test</Variable><String DoubleQ>"</String DoubleQ><br/>
<Normal Text></Normal Text><br/>
<Normal Text></Normal Text><br/>
<Comment># Process Expansion</Comment><br/>
<Comment># see fish issue 4230</Comment><br/>
<UnixCommand>kill</UnixCommand><Normal Text> </Normal Text><Option>-STOP</Option><Normal Text> %self</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Command>endcmd</Command><Normal Text> </Normal Text><Comment># is a command</Comment><br/>
<Normal Text></Normal Text><br/>
<Control Flow>for</Control Flow><Normal Text> </Normal Text><Variable>inc</Variable><Normal Text> </Normal Text><Keyword>in</Keyword><Normal Text> a </Normal Text><Comment># inc is a variable</Comment><br/>
<Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>switch</Control Flow><Normal Text> d</Normal Text><Separator>;</Separator><Control Flow>case</Control Flow><Normal Text> </Normal Text><String DoubleQ>"*"</String DoubleQ><Normal Text> </Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>case</Control Flow><Normal Text> d</Normal Text><Separator>;</Separator><Builtin>echo</Builtin><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>end</Control Flow><br/>
<Normal Text></Normal Text><br/>
<Control Flow>if</Control Flow><Normal Text> </Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>else</Control Flow><Normal Text> </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>else</Control Flow><Normal Text> </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>if</Control Flow><Normal Text> </Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>else</Control Flow><Normal Text> </Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>end</Control Flow><Separator>;</Separator><Control Flow>else</Control Flow><Normal Text> </Normal Text><Separator>;</Separator><Normal Text> </Normal Text><Control Flow>end</Control Flow><br/>
