diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-01-18 19:31:13 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-01-18 19:31:13 +1100 |
| commit | aba55f7e945d337a604c6f6a25a71c383c1fd5ae (patch) | |
| tree | 332aa3a1d7c314ef19036b12751e15f60397d381 /lexilla/test/examples/batch/x.bat.styled | |
| parent | 267cb80477a62c6d645454b35c2f01566296c196 (diff) | |
| download | scintilla-mirror-aba55f7e945d337a604c6f6a25a71c383c1fd5ae.tar.gz | |
Adding test for batch lexer.
Diffstat (limited to 'lexilla/test/examples/batch/x.bat.styled')
| -rw-r--r-- | lexilla/test/examples/batch/x.bat.styled | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lexilla/test/examples/batch/x.bat.styled b/lexilla/test/examples/batch/x.bat.styled new file mode 100644 index 000000000..9d1a14cdc --- /dev/null +++ b/lexilla/test/examples/batch/x.bat.styled @@ -0,0 +1,26 @@ +{1}rem comment=1 +rem 'echo' is word=2, 'a' is default=0 +{2}echo{0} a +{1}rem label=3 +{3}:START +{1}rem '@' is hide=4 +{4}@{2}echo{0} b +{1}rem 'gcc' is external command=5 +{5}gcc{0} --version +{1}rem '%PATH%' is variable=6 +{2}echo{0} {6}%PATH%{0} +{2}echo{0} {6}%ProgramFiles(x86)%{0} +{1}rem operator=7 '=' +{4}@{2}set{0} Q{7}={0}A + +{1}rem 2nd ')' in this construct is wrongly styled as default +{2}if ERRORLEVEL{0} 2{2} goto{0} END +{4}@{2}if exist{0} a{5} ({0} +{2}echo{0} exists +{5}){2} else{0} ( +{2}echo{0} not +{5}){0} + +{2}FOR{0} /L {6}%%G{2} IN{0} (2,1,4){2} DO{5} (echo{0} {6}%%G{0}) + +{3}:END |
