Community
    • 登入

    Comment block in lisp file doesn't display correctly

    已排程 已置頂 已鎖定 已移動 General Discussion
    4 貼文 2 Posters 2.1k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Xiao CaiX
      Xiao Cai
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @Xiao Cai
        最後由 編輯

        @Xiao-Cai

        looks like comment block is #| and |#

        Cheers
        Claudia

        1 條回覆 最後回覆 回覆 引用 0
        • Xiao CaiX
          Xiao Cai
          最後由 編輯

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

          Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
          • Claudia FrankC
            Claudia Frank @Xiao Cai
            最後由 編輯

            @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 條回覆 最後回覆 回覆 引用 0
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors