Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
m00nlight committed Mar 5, 2015
1 parent 4b6d876 commit 9e2820d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ Called by `imenu--generic-function'."
"\\>")
0 font-lock-constant-face)
;; Character literals - \1, \a, \newline, \u0000
;; FIXME: handle properly some punctuation characters (like commas and semicolumns)
("\\\\\\([[:punct:]]\\|[a-z0-9]+\\)\\>" 0 'clojure-character-face)
("\\\\\\([[:punct:]]\\|[a-z0-9]+\\>\\)" 0 'clojure-character-face)
;; Constant values (keywords), including as metadata e.g. ^:static
("\\<^?\\(:\\(\\sw\\|\\s_\\)+\\(\\>\\|\\_>\\)\\)" 1 'clojure-keyword-face)
;; cljx annotations (#+clj and #+cljs)
Expand Down
4 changes: 3 additions & 1 deletion test/clojure-mode-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ POS."
(should (eq (clojure-test-face-at 1 2 "\\1") 'clojure-character-face))
(should (eq (clojure-test-face-at 1 6 "\\u0032") 'clojure-character-face))
(should (eq (clojure-test-face-at 1 2 "\\+") 'clojure-character-face))
(should (eq (clojure-test-face-at 1 2 "\\.") 'clojure-character-face)))
(should (eq (clojure-test-face-at 1 2 "\\.") 'clojure-character-face))
(should (eq (clojure-test-face-at 1 2 "\\,") 'clojure-character-face))
(should (eq (clojure-test-face-at 1 2 "\\;") 'clojure-character-face)))

(ert-deftest clojure-mode-syntax-table/cljx ()
:tags '(fontification syntax-table)
Expand Down

0 comments on commit 9e2820d

Please sign in to comment.