This is still an issue - any plans to address?
-
Hello,
About 5 months ago, I posted that I believed I had found a bug in how Notepad++ processes nested parenthesis when editing batch files. The post is here: https://notepad-plus-plus.org/community/topic/10120/possible-bug-found-when-processing-nested-parentheses-in-a-batch-script/3
This is still an issue and I regularly encounter it when editing other batch files as well. It is not just the one in the post.
Are there any plans to address this issue in a future release of Notepad++?
Here are a few lines which illustrate the problem if pasted into a batch file and edited with Notepad++. These lines mess up the parentheses for the first “DO” and the “ELSE.”
FOR %%A IN (testline) DO (
FOR %%B IN (testline2) DO (
)
IF condition==condition (
Do this
) ELSE (
Do this instead
)
) -
Hi @Josiah-Deal,
I am not quite familiar with the batch format but if you try this batch:
FOR %%A IN (testline) DO (
FOR %%B IN (testline2) DO (
)
IF condition==condition DO (
something
) ELSE DO (
something
)
)everything looks OK and Notepad++ doesn’t have any problems recognizing the parenthesis.
I think that the ‘Do’ in your syntax is recognized as a keyword and also the IF and ELSE appear to need corresponding DO keyword.BR,
Pavel -
This is a problem with Scintilla, meaning you should report it to them.