Community
    • Login

    UDL folded comment spontaneously unfolds

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 217 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.
    • B
      Blind SQuirreL
      last edited by

      I’m having this problem in v8.6.2.

      In my UDL, I have { } defined to enclose multi-line comments, with the ‘Allow folding of comments’ box checked. When I have a folded comment in my document, it spontaneously unfolds if the cursor is on any line above the comment and I type any key. This does not happen typing on lines below the comment. Even if the comment is unfolded, but nested inside a different folded pair of keywords, then that outer structure unfolds. This behavior is repeated for every multiline comment below the cursor. It happens regardless of which delimiters I use for the multiline comment; I tried /* */ and <- ->, among others and they all do the same thing. I modified the included TESTLANG UDL with the comment as the only configuration, and it still happens.

      This problem does not present in built-in languages. For instance, multiline /* */ comments in SQL stay folded in the same scenario.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Blind SQuirreL
        last edited by

        @Blind-SQuirreL ,

        Yep, my experiments show the behavior. You have found yet another bug in UDL. Too bad there have been no bug fixes or feature improvements in UDL in years, so even if you made an official bug report, I doubt anything would ever happen with it. (There are other longstanding UDL bugs dealing with comments and folds. FOr example, if you have one or more single-line comments at the beginning of the file, any folding that happens afterward might be off-by-one-or-more-lines from where it should be.)

        As a workaround, I suggest not using the multi-line comment definition if you want to fold that section of text; instead, use Folding in Code Style 1 if you can – or Style 2 if you’ve already used Style 1 (and are able to have newlines or spaces before and after your { and } indicators ).

        1 Reply Last reply Reply Quote 2
        • Terry RT Terry R referenced this topic on
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors