• Login
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.
  • X
    Xiao Cai
    last edited by Mar 18, 2017, 12:26 PM

    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?

    C 1 Reply Last reply Mar 18, 2017, 8:26 PM Reply Quote 0
    • C
      Claudia Frank @Xiao Cai
      last edited by Mar 18, 2017, 8:26 PM

      @Xiao-Cai

      looks like comment block is #| and |#

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • X
        Xiao Cai
        last edited by Mar 19, 2017, 5:00 AM

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

        C 1 Reply Last reply Mar 19, 2017, 2:17 PM Reply Quote 0
        • C
          Claudia Frank @Xiao Cai
          last edited by Mar 19, 2017, 2:17 PM

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