Skip to content

Commit 1b3e89d

Browse files
committed
[Fix #496] Highlight [[var]] style comments
1 parent e898a94 commit 1b3e89d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clojure-mode.el

+4
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,10 @@ any number of matches of `clojure--sym-forbidden-rest-chars'."))
911911
(,(rx "`" (group-n 1 (optional "#'")
912912
(+ (or (syntax symbol) (syntax word)))) "`")
913913
(1 'font-lock-constant-face prepend))
914+
;; Highlight [[var]] comments
915+
(,(rx "[[" (group-n 1 (optional "#'")
916+
(+ (or (syntax symbol) (syntax word)))) "]]")
917+
(1 'font-lock-constant-face prepend))
914918
;; Highlight escaped characters in strings.
915919
(clojure-font-lock-escaped-chars 0 'bold prepend)
916920
;; Highlight grouping constructs in regular expressions

0 commit comments

Comments
 (0)