File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -467,8 +467,8 @@ Called by `imenu--generic-function'."
467
467
t )
468
468
" \\ >" )
469
469
0 font-lock-builtin-face )
470
- ; ; Dynamic variables - *something*
471
- (" \\ <\\ *[a-z-]*\\ *\\ >" 0 font-lock-variable-name-face )
470
+ ; ; Dynamic variables - *something* or @*something*
471
+ (" \\ <@? \\ ( \\ *[a-z-]*\\ *\\ ) \\ >" 1 font-lock-variable-name-face )
472
472
; ; Global constants - nil, true, false
473
473
(,(concat
474
474
" \\ <"
@@ -492,8 +492,8 @@ Called by `imenu--generic-function'."
492
492
(" \\ (?:\\ <\\ |\\ .\\ |/\\ |#?^\\ )\\ ([A-Z][a-zA-Z0-9_]*[a-zA-Z0-9$_]+\\ .?\\ >\\ )" 1 font-lock-type-face )
493
493
; ; foo.bar.baz
494
494
(" \\ <^?\\ ([a-z][a-z0-9_-]+\\ .\\ ([a-z][a-z0-9_-]*\\ .?\\ )+\\ )" 1 font-lock-type-face )
495
- ; ; foo/ Foo/
496
- (" \\ <\\ ([a-zA-Z][a-z0-9_-]*\\ )/" 1 font-lock-type-face )
495
+ ; ; foo/ Foo/ @Foo/
496
+ (" \\ <@? \\ ([a-zA-Z][a-z0-9_-]*\\ )/" 1 font-lock-type-face )
497
497
; ; fooBar
498
498
(" \\ (?:\\ <\\ |/\\ )\\ ([a-z]+[A-Z]+[a-zA-Z0-9$]*\\ >\\ )" 1 'clojure-interop-method-face )
499
499
; ; Highlight grouping constructs in regular expressions
Original file line number Diff line number Diff line change @@ -202,6 +202,16 @@ POS."
202
202
(should (eq (clojure-test-face-at 1 5 " #+clj x" ) 'font-lock-preprocessor-face ))
203
203
(should (eq (clojure-test-face-at 1 6 " #+cljs x" ) 'font-lock-preprocessor-face )))
204
204
205
+ (ert-deftest clojure-mode-syntax-table/refer-ns ()
206
+ :tags '(fontification syntax-table)
207
+ (should (eq (clojure-test-face-at 1 3 " foo/var" ) 'font-lock-type-face ))
208
+ (should (eq (clojure-test-face-at 2 4 " @foo/var" ) 'font-lock-type-face )))
209
+
210
+ (ert-deftest clojure-mode-syntax-table/dynamic-var ()
211
+ :tags '(fontification syntax-table)
212
+ (should (eq (clojure-test-face-at 1 10 " *some-var*" ) 'font-lock-variable-name-face ))
213
+ (should (eq (clojure-test-face-at 2 11 " @*some-var*" ) 'font-lock-variable-name-face )))
214
+
205
215
(provide 'clojure-mode-test )
206
216
207
217
; ; Local Variables:
You can’t perform that action at this time.
0 commit comments