zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.56k stars 179 forks source link

Wrong bracket highlighting when echo-ing literal brackets #709

Closed MagicalDrizzle closed 12 months ago

MagicalDrizzle commented 12 months ago

issue only pops up when setting Notepad2 DarkTheme.ini as default test: save as test.bat/cmd

if exist a.txt (
    echo (y/N)
)

result: wrong

MagicalDrizzle commented 12 months ago

ah seems it was my fault, my apologies

zufuliu commented 12 months ago

the closing parenthesis need to be escaped with caret ^)

@echo off
if 1==1 (
    echo ^(Yes^) 
)