Warning, /frameworks/syntax-highlighting/autotests/input/test.elv is written in an unsupported language. File is not indexed.

0001 # A sample file to test syntax highlighting.
0002 
0003 nop "double \n quoted" and 'single '' quoted' # comment
0004 
0005 # Various variable contexts
0006 nop $pid
0007 var var-name = { var fn-name~ = {var not-var-name} }
0008 nop (set var-name = foo | tmp var-name = bar); del var-name
0009 for var-name [] { }
0010 try { } catch var-name { }
0011 
0012 # Builtin functions
0013 != a (nop b) | echo c
0014 
0015 # Builtin special command
0016 and a b # "operator"
0017 use re # "other"
0018 if a { } elif b { } else { }
0019 try { } except err { } else { } finally { }
0020 
0021 # Metacharacters
0022 echo ** () []
0023 
0024 # Regression tests
0025 set-env # should highlight entire set-env
0026 set-foo # should highlight nothing