File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,8 @@ Called by `imenu--generic-function'."
477477 ; ; fooBar
478478 (" \\ (?:\\ <\\ |/\\ )\\ ([a-z]+[A-Z]+[a-zA-Z0-9$]*\\ >\\ )" 1 'clojure-interop-method-face )
479479 ; ; Highlight `code` marks, just like `elisp' .
480- (,(rx " `" (group-n 1 (+ (or (syntax symbol) (syntax word)))) " `" )
480+ (,(rx " `" (group-n 1 (optional " #'" )
481+ (+ (or (syntax symbol) (syntax word)))) " `" )
481482 (1 'font-lock-constant-face prepend))
482483 ; ; Highlight grouping constructs in regular expressions
483484 (clojure-font-lock-regexp-groups
Original file line number Diff line number Diff line change @@ -103,6 +103,16 @@ POS."
103103 :tags '(fontification syntax-table)
104104 (should (equal (clojure-test-face-at 2 11 " {:something 20}" ) '(clojure-keyword-face))))
105105
106+ (ert-deftest clojure-mode-syntax-table/stuff-in-backticks ()
107+ :tags '(fontification syntax-table)
108+ (should (equal (clojure-test-face-at 1 2 " \" `#' s/trim`\" " ) font-lock-string-face ))
109+ (should (equal (clojure-test-face-at 3 10 " \" `#' s/trim`\" " ) '(font-lock-constant-face font-lock-string-face )))
110+ (should (equal (clojure-test-face-at 11 12 " \" `#' s/trim`\" " ) font-lock-string-face ))
111+ (should (equal (clojure-test-face-at 1 1 " ;`#' s/trim`" ) font-lock-comment-delimiter-face ))
112+ (should (equal (clojure-test-face-at 2 2 " ;`#' s/trim`" ) font-lock-comment-face ))
113+ (should (equal (clojure-test-face-at 3 10 " ;`#' s/trim`" ) '(font-lock-constant-face font-lock-comment-face )))
114+ (should (equal (clojure-test-face-at 11 11 " ;`#' s/trim`" ) font-lock-comment-face )))
115+
106116(ert-deftest clojure-mode-syntax-table/fontify-namespaced-keyword ()
107117 :tags '(fontification syntax-table)
108118 (should (equal (clojure-test-face-at 2 2 " {:alias/some 20}" ) '(clojure-keyword-face)))
You can’t perform that action at this time.
0 commit comments