Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Highlight stacked discard macros #17

Open
Labels
help wantedExtra attention is needed highlightingAffects syntax highlighting
@axvr

Description

Currently the syntax highlighting support for the discard reader macro (#_) is limited to a single form, however Clojure supports stacking them which comments out subsequent forms.

;; Correctly highlighted:
(defn foo [x]
 {:bar (+ x 1)
 #_:biz #_(* x 2)})
;; Incorrectly highlighted:
(defn foo [x]
 {:bar (+ x 1)
 #_#_:biz (* x 2)})

It may not be possible to implement this behaviour, but is worth trying. If it isn't possible (to do efficiently) we may just disable the existing comment reader macro highlighting support by default for consistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed highlightingAffects syntax highlighting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /