#_ and comment highlight differently with respect to clojure-ts-comment-macro-font-lock-body

未关闭
#129 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
emacs, emacs-lisp
领域
tooling

调研方向

首先定位 clojure-ts-comment-macro-font-lock-body 的实现,并在未设置该选项时,使用提供的 #_ 和 comment 形式复现问题。完成的标准是两种形式都获得相同的语法高亮,而不是只有 #_ 被灰显;请在 Emacs 30.2 和 clojure-ts-mode 0.6.0 中验证行为。

由索引模型根据 Issue 内容生成。

描述

bug

The #_ reader macro comments are not syntax highlighted, but just greyed out, as opposed to the comment macro.

Expected behavior

#_ reader macro comments and comment macro comment are highlighted the same when clojure-ts-comment-macro-font-lock-body is nil.

Actual behavior

#_ reader macro comments are greyed out.

Image

Steps to reproduce the problem

  1. Make sure clojure-ts-comment-macro-font-lock-body is not customized.
  2. Write:
#_(prn "Highlight me too!")
(comment (prn "I'm already highlighted."))
  1. See the differences in highlighting.

Environment & Version information

clojure-ts-mode version
clojure-ts-mode (version 0.6.0)
tree-sitter-clojure grammar version

unstable-20250526

Emacs version

30.2

Operating system

Ubuntu 24.04

主要语言
Emacs Lisp
星标
192
派生
21
平均合并
2 天 14 小时
30 天内合并 PR
23

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

clojure-emacs/clojure-ts-mode 的其他 Issue

查看 clojure-emacs/clojure-ts-mode 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。