Skip to content

Commit

Permalink
[Fix clojure-emacs#496] Highligh [[var]] style comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkarlsson committed Apr 9, 2019
1 parent e898a94 commit 42ce3b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,10 @@ any number of matches of `clojure--sym-forbidden-rest-chars'."))
(,(rx "`" (group-n 1 (optional "#'")
(+ (or (syntax symbol) (syntax word)))) "`")
(1 'font-lock-constant-face prepend))
;; Highlight [[var]] comments
(,(rx "[[" (group-n 1 (optional "#'")
(+ (or (syntax symbol) (syntax word)))) "]]")
(1 'font-lock-constant-face prepend))
;; Highlight escaped characters in strings.
(clojure-font-lock-escaped-chars 0 'bold prepend)
;; Highlight grouping constructs in regular expressions
Expand Down

0 comments on commit 42ce3b0

Please sign in to comment.