aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/batch/x.bat
diff options
context:
space:
mode:
authorYury Dubinsky <unknown>2020-04-07 10:33:19 +1000
committerYury Dubinsky <unknown>2020-04-07 10:33:19 +1000
commit775aed0492796b2444c760c4594a05067e49abb4 (patch)
tree110d2588ffa5abee4bc10bf838ce01cbbb3e7006 /lexilla/test/examples/batch/x.bat
parent655e7160c96e37a2a5486bf8155d9d541d65d250 (diff)
downloadscintilla-mirror-775aed0492796b2444c760c4594a05067e49abb4.tar.gz
Bug [#1624]. Fix brace styling in Batch lexer so that brace matching works.
Bug [#1906], Bug [#1997], and Bug [#2065] also fixed.
Diffstat (limited to 'lexilla/test/examples/batch/x.bat')
-rw-r--r--lexilla/test/examples/batch/x.bat10
1 files changed, 9 insertions, 1 deletions
diff --git a/lexilla/test/examples/batch/x.bat b/lexilla/test/examples/batch/x.bat
index ce061da0d..60eab1116 100644
--- a/lexilla/test/examples/batch/x.bat
+++ b/lexilla/test/examples/batch/x.bat
@@ -13,7 +13,9 @@ echo %ProgramFiles(x86)%
rem operator=7 '='
@set Q=A
-rem 2nd ')' in this construct is wrongly styled as default
+::comment=1
+
+:: Bug 1624: this construct produced inconsistent brackets in the past
if ERRORLEVEL 2 goto END
@if exist a (
echo exists
@@ -23,4 +25,10 @@ echo not
FOR /L %%G IN (2,1,4) DO (echo %%G)
+:: Bug 1997: keywords not recognized when preceded by '('
+IF NOT DEFINED var (SET var=1)
+
+:: Bug 2065: keywords not recognized when followed by ')'
+@if exist a ( exit)
+
:END