Community
    • Login

    This is still an issue - any plans to address?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 2.6k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          dail
          last edited by

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

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors