File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
* Prevent error when calling ` indent-for-tab-command ` at the start of
8
8
the buffer at end of line.
9
9
* [ #274 ] ( https://github.com/clojure-emacs/clojure-mode/issues/274 ) : Correct font-locking of certain punctuation character literals.
10
+ * Fix font-locking of namespace-prefixed dynamic vars (e.g. ` some.ns/*var* ` ).
10
11
11
12
## 4.0.1 (19/12/2014)
12
13
Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ Called by `imenu--generic-function'."
444
444
" \\ >" )
445
445
0 font-lock-builtin-face )
446
446
; ; Dynamic variables - *something* or @*something*
447
- (" \\ < @?\\ (\\ *[a-z-]*\\ *\\ )\\ >" 1 font-lock-variable-name-face )
447
+ (" \\ (?: \\ < \\ |/ \\ ) @?\\ (\\ *[a-z-]*\\ *\\ )\\ >" 1 font-lock-variable-name-face )
448
448
; ; Global constants - nil, true, false
449
449
(,(concat
450
450
" \\ <"
Original file line number Diff line number Diff line change @@ -222,7 +222,8 @@ POS."
222
222
(ert-deftest clojure-mode-syntax-table/dynamic-var ()
223
223
:tags '(fontification syntax-table)
224
224
(should (eq (clojure-test-face-at 1 10 " *some-var*" ) 'font-lock-variable-name-face ))
225
- (should (eq (clojure-test-face-at 2 11 " @*some-var*" ) 'font-lock-variable-name-face )))
225
+ (should (eq (clojure-test-face-at 2 11 " @*some-var*" ) 'font-lock-variable-name-face ))
226
+ (should (eq (clojure-test-face-at 9 13 " some.ns/*var*" ) 'font-lock-variable-name-face )))
226
227
227
228
(ert-deftest clojure-mode-syntax-table/ns-macro ()
228
229
:tags '(fontification syntax-table)
You can’t perform that action at this time.
0 commit comments