clojure-emacs / clojure-emacs/clojure-mode

Syntax highlighting for #_ forms comments out next form

Open
#404 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Emacs Lisp
Stars
1k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

## Expected behavior

When using the `#_` reader macro, you can chain several together. This lets you comment out more than one form at a time. However the Cider syntax highlighting uses the first `#_` to comment out the second one. For example:

In Cursive:

screenshot of intellij idea 12-08-16 8-08-51 am
## Actual behavior

In emacs:

screenshot of emacs 12-08-16 8-05-56 am
## Steps to reproduce the problem

``` clj
#_ #_ :a :b
```
## Environment & Version information
### clojure-mode version information

```
clojure-mode (version 5.5.2)
```
### Emacs version

`25.1.50.1`
### Operating system

OS X 10.11.6

Carried over from https://github.com/clojure-emacs/cider/issues/1822

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.