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.
    • Josiah DealJ
      Josiah Deal
      last edited by

      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
      • pnedevP
        pnedev
        last edited by

        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
        • dailD
          dail
          last edited by

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

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