Skip to content

Commit f6b01fc

Browse files
committed
Makes '#' a symbol constituent character with the prefix flag.
Being a symbol constituent means that it will be considered part of a symbol. Having the prefix flag means that it will get skipped for navigation purposes.
1 parent 89222f3 commit f6b01fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clojure-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@
276276
"\\>")
277277
1 font-lock-type-face)
278278
;; Constant values (keywords), including as metadata e.g. ^:static
279-
("\\<^?:\\(\\sw\\)+\\>" 0 font-lock-constant-face)
279+
("\\<^?:\\(\\sw\\|\\s_\\)+\\(\\>\\|\\_>\\)" 0 font-lock-constant-face)
280280
;; Meta type annotation #^Type or ^Type
281-
("#?^\\sw+" 0 font-lock-preprocessor-face)
281+
("#?^\\(\\sw\\|\\s_\\)+" 0 font-lock-preprocessor-face)
282282
("\\<io\\!\\>" 0 font-lock-warning-face)
283283

284284
;;Java interop highlighting
@@ -367,7 +367,7 @@ Clojure to load that file."
367367
(modify-syntax-entry ?\] ")[" table)
368368
(modify-syntax-entry ?^ "'" table)
369369
;; Make hash a usual word character
370-
(modify-syntax-entry ?# "w" table)
370+
(modify-syntax-entry ?# "_ p" table)
371371
table))
372372

373373
(defvar clojure-mode-abbrev-table nil

0 commit comments

Comments
 (0)