Community
    • Login

    Comment block in lisp file doesn't display correctly

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 2.1k 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.
    • Xiao CaiX
      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
        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
          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
            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors