Community
    • Login

    Comment block in lisp file doesn't display correctly

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 2.4k 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.
    • Xiao CaiX Offline
      Xiao Cai
      last edited by

      Notepad++ 7.3.3
      In lisp file, ;| and |; mark a comment block and it will be displayed in comment color. But only the first line beginning with ;| is displayed correctly and the color of the other lines looks incorrectly. Is it a bug?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Xiao Cai
        last edited by

        @Xiao-Cai

        looks like comment block is #| and |#

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Xiao CaiX Offline
          Xiao Cai
          last edited by

          The lisp line in langs.xml is like this:
          <Language name=“lisp” ext=“lsp” commentLine=“;;” commentStart=“;|” commentEnd=“|;”>

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            Claudia Frank @Xiao Cai
            last edited by

            @Xiao-Cai

            maybe this was used in the past but current lexer defines

            		} else if (state == SCE_LISP_MULTI_COMMENT) {
            			if (ch == '|' && chNext == '#') {
            				i++;
            				chNext = styler.SafeGetCharAt(i + 1);
            				styler.ColourTo(i, state);
            				state = SCE_LISP_DEFAULT;
            			}
            

            Cheers
            Claudia

            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