Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Login

    Fold Issue in Verilog mode

    Help wanted · · · – – – · · ·
    2
    5
    118
    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.
    • RAMA KRISHNAR
      RAMA KRISHNA
      last edited by RAMA KRISHNA

      Attached image i am seeing anomaly in verilog mode in notepad++. begin-end blocks in verilog are same as {…} in C. Adding a comment in 3rd line in the shown style is causing issue in fold map, when i removed the comment it resolved. May i know is it known issue ?

      Screenshot 2023-09-08 164105.png

      1 Reply Last reply Reply Quote 0
      • R
        rdipardo
        last edited by

        Syntax highlighting and folding are not functions of the main application; they’re provided by this third-party library: https://www.scintilla.org/Lexilla.html

        If you send the issue to the library’s maintainer, and a fix is committed, then a future version of Notepad++ will benefit, whenever its third-party components get updated.

        In the meantime, try rewriting the comment text without using array literal syntax (i.e. remove the curly braces {...{...}}) just to see if that makes a difference.

        RAMA KRISHNAR 1 Reply Last reply Reply Quote 2
        • RAMA KRISHNAR
          RAMA KRISHNA @rdipardo
          last edited by RAMA KRISHNA

          @rdipardo yeah 13-21 lines are without the comment , it is looking good. as mentioned by u i have reported the issue in github.

          https://github.com/ScintillaOrg/lexilla/issues/204

          RAMA KRISHNAR 1 Reply Last reply Reply Quote 0
          • RAMA KRISHNAR
            RAMA KRISHNA @RAMA KRISHNA
            last edited by

            @RAMA-KRISHNA there is a reply in that thread kindly have a look so that we can update in next version of notepad++.
            for now workaround is to insert the space between

            //{.....}
            

            so that it becomes

            // {....}
            

            and the fold disappeared.

            RAMA KRISHNAR 1 Reply Last reply Reply Quote 2
            • RAMA KRISHNAR
              RAMA KRISHNA @RAMA KRISHNA
              last edited by

              observed one more issue regarding the folds and pasted same in the above scintilla thread . ifdef is closing with end and begin is closing with endif.

              3cf4e4d0-41a9-4626-83b1-a2202603ef3d-image.png

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