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 | |
| parent | 267cb80477a62c6d645454b35c2f01566296c196 (diff) | |
| download | scintilla-mirror-aba55f7e945d337a604c6f6a25a71c383c1fd5ae.tar.gz | |
Adding test for batch lexer.
Diffstat (limited to 'lexilla/test/examples/batch/x.bat')
| -rw-r--r-- | lexilla/test/examples/batch/x.bat | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lexilla/test/examples/batch/x.bat b/lexilla/test/examples/batch/x.bat new file mode 100644 index 000000000..ce061da0d --- /dev/null +++ b/lexilla/test/examples/batch/x.bat @@ -0,0 +1,26 @@ +rem comment=1 +rem 'echo' is word=2, 'a' is default=0 +echo a +rem label=3 +:START +rem '@' is hide=4 +@echo b +rem 'gcc' is external command=5 +gcc --version +rem '%PATH%' is variable=6 +echo %PATH% +echo %ProgramFiles(x86)% +rem operator=7 '=' +@set Q=A + +rem 2nd ')' in this construct is wrongly styled as default +if ERRORLEVEL 2 goto END +@if exist a ( +echo exists +) else ( +echo not +) + +FOR /L %%G IN (2,1,4) DO (echo %%G) + +:END |
