diff options
| author | Yury Dubinsky <unknown> | 2020-04-07 10:33:19 +1000 |
|---|---|---|
| committer | Yury Dubinsky <unknown> | 2020-04-07 10:33:19 +1000 |
| commit | 775aed0492796b2444c760c4594a05067e49abb4 (patch) | |
| tree | 110d2588ffa5abee4bc10bf838ce01cbbb3e7006 /lexilla/test/examples/batch/x.bat.styled | |
| parent | 655e7160c96e37a2a5486bf8155d9d541d65d250 (diff) | |
| download | scintilla-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.styled')
| -rw-r--r-- | lexilla/test/examples/batch/x.bat.styled | 18 |
1 files changed, 13 insertions, 5 deletions
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 |
