Menu

Highlighting issues on .BAT files

scrubble
2013-02-08
2013-02-17
  • scrubble

    scrubble - 2013-02-08

    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

     
  • scrubble

    scrubble - 2013-02-09

    Just to add that I also added this, just in case, to Scintilla bug tracker at:

    https://sourceforge.net/p/scintilla/bugs/1162/

     
  • scrubble

    scrubble - 2013-02-09

    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

     
  • cchris

    cchris - 2013-02-17

    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

     
  • cchris

    cchris - 2013-02-17

    Xhile I am at it, HIDE SYBOL in the Styler Configurator should perhaps be HIDE SYMBOL?

    CChris

     
MongoDB Logo MongoDB