clojure-emacs / clojure-emacs/clojure-ts-mode

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

Open
#129 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Emacs Lisp
Stars
188
Forks
21
Avg merge
12m
Merged PRs (30d)
1

Description

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:

```clojure
#_(prn "Highlight me too!")
(comment (prn "I'm already highlighted."))
```

3. 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.