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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login