aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples
diff options
context:
space:
mode:
Diffstat (limited to 'lexilla/test/examples')
-rw-r--r--lexilla/test/examples/batch/SciTE.properties2
-rw-r--r--lexilla/test/examples/batch/x.bat10
-rw-r--r--lexilla/test/examples/batch/x.bat.styled18
3 files changed, 23 insertions, 7 deletions
diff --git a/lexilla/test/examples/batch/SciTE.properties b/lexilla/test/examples/batch/SciTE.properties
index 6c03c3f39..c3963bd1e 100644
--- a/lexilla/test/examples/batch/SciTE.properties
+++ b/lexilla/test/examples/batch/SciTE.properties
@@ -1,3 +1,3 @@
lexer.*.bat=batch
-keywords.*.bat=call do echo else errorlevel exist for goto if in set
+keywords.*.bat=call defined do echo else errorlevel exist exit for goto if in not set
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
diff --git a/lexilla/test/examples/batch/x.bat.styled b/lexilla/test/examples/batch/x.bat.styled
index 9d1a14cdc..07f903338 100644
--- a/lexilla/test/examples/batch/x.bat.styled
+++ b/lexilla/test/examples/batch/x.bat.styled
@@ -13,14 +13,22 @@ rem 'echo' is word=2, 'a' is default=0
{1}rem operator=7 '='
{4}@{2}set{0} Q{7}={0}A
-{1}rem 2nd ')' in this construct is wrongly styled as default
+{1}::comment=1
+{0}
+{1}:: Bug 1624: this construct produced inconsistent brackets in the past
{2}if ERRORLEVEL{0} 2{2} goto{0} END
-{4}@{2}if exist{0} a{5} ({0}
+{4}@{2}if exist{0} a (
{2}echo{0} exists
-{5}){2} else{0} (
+){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})
+{2}FOR{0} /L {6}%%G{2} IN{0} (2,1,4){2} DO{0} ({2}echo{0} {6}%%G{0})
+
+{1}:: Bug 1997: keywords not recognized when preceded by '('
+{2}IF NOT DEFINED{0} var ({2}SET{0} var{7}={0}1)
+
+{1}:: Bug 2065: keywords not recognized when followed by ')'
+{4}@{2}if exist{0} a ({2} exit{0})
{3}:END