Skip to content

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

@clyfe

Description

@clyfe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions