• Login
Community
  • Login

This is still an issue - any plans to address?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 2.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Josiah Deal
    last edited by Jan 25, 2016, 4:59 AM

    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
    )
    )

    1 Reply Last reply Reply Quote 0
    • P
      pnedev
      last edited by Jan 25, 2016, 12:14 PM

      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

      1 Reply Last reply Reply Quote 0
      • D
        dail
        last edited by Jan 25, 2016, 2:45 PM

        This is a problem with Scintilla, meaning you should report it to them.

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors