Skip to content

Commit bc18175

Browse files
committed
Make # a word character (fixes issue#21).
1 parent f14f151 commit bc18175

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clojure-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
"\\>")
276276
1 font-lock-type-face)
277277
;; Constant values (keywords), including as metadata e.g. ^:static
278-
("\\<^?:\\(\\sw\\|#\\)+\\>" 0 font-lock-constant-face)
278+
("\\<^?:\\(\\sw\\)+\\>" 0 font-lock-constant-face)
279279
;; Meta type annotation #^Type or ^Type
280280
("#?^\\sw+" 0 font-lock-preprocessor-face)
281281
("\\<io\\!\\>" 0 font-lock-warning-face)
@@ -365,6 +365,8 @@ Clojure to load that file."
365365
(modify-syntax-entry ?\[ "(]" table)
366366
(modify-syntax-entry ?\] ")[" table)
367367
(modify-syntax-entry ?^ "'" table)
368+
;; Make hash a usual word character
369+
(modify-syntax-entry ?# "w" table)
368370
table))
369371

370372
(defvar clojure-mode-abbrev-table nil

0 commit comments

Comments
 (0)