I'm a new user of NPP and having issues with the syntax highlighter for .BAT files. Whenever it finds a parentheses inside an IF-ELSE structure, it flags it as red, while the .BAT itself has no issues and runs perfectly.
A single-line example would be as follows:
IF NOT %batdate%==%override_date% (goto :DATE-OVERRIDE) ELSE (goto :DATE-CONFIRM)
The red highlighting of parentheses also happens inside multi-line IF-ELSE structures.
Is there anything I can do about this ?
Thx and cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From inspecting the code, the lexer does not support parentheses.
Also, on a fresh 6.3, the brackets are not permanently red. They become so when cursor is on one of them. So the red colour is indeed specific to Notepad++ general brace matching.
Only bug I can see is that the first ( is styled like "goto", which it probably shouldn't. Since Notepad++ is on Scintilla v2.20 while Scintilla itself is past 3.0, the bug may be fixed already there.
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a new user of NPP and having issues with the syntax highlighter for .BAT files. Whenever it finds a parentheses inside an IF-ELSE structure, it flags it as red, while the .BAT itself has no issues and runs perfectly.
A single-line example would be as follows:
The red highlighting of parentheses also happens inside multi-line IF-ELSE structures.
Is there anything I can do about this ?
Thx and cheers
Just to add that I also added this, just in case, to Scintilla bug tracker at:
https://sourceforge.net/p/scintilla/bugs/1162/
Hi ppl,
Neil Hodgson from Scintilla was quick to respond to my bug-tracker entry. Quoting him (from this post):
No unusual highlighting of the example in SciTE so appears to be specific to Notepad++.
So it seems that the ball returns to NPP team...
Cheers
From inspecting the code, the lexer does not support parentheses.
Also, on a fresh 6.3, the brackets are not permanently red. They become so when cursor is on one of them. So the red colour is indeed specific to Notepad++ general brace matching.
Only bug I can see is that the first ( is styled like "goto", which it probably shouldn't. Since Notepad++ is on Scintilla v2.20 while Scintilla itself is past 3.0, the bug may be fixed already there.
CChris
Xhile I am at it, HIDE SYBOL in the Styler Configurator should perhaps be HIDE SYMBOL?
CChris