clojure-emacs / clojure-emacs/clojure-mode

Syntax highlighting for #_ forms comments out next form

オープン
#404 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
bug
主要言語
Emacs Lisp
スター
999
フォーク
249
PR マージ指標
30日以内にマージされた PR はありません

説明

## 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、`#_ #_ :a :b` を使って clojure-mode で問題を再現し、報告で説明されている構文ハイライトの挙動を調べます。連続した `#_` フォームがそれぞれ独立してハイライトされ、最初のリーダーマクロが 2 つ目を誤って消費しないことが完了条件です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
clojure, emacs-lisp
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。