Fix clojure special character font-highlighting

This commit is contained in:
Ivan Malison 2016-07-15 13:39:31 -07:00
parent 8195392736
commit 12a6769cc3
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -2415,13 +2415,13 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
"Pretty symbols for Clojure's anonymous functions and sets, "Pretty symbols for Clojure's anonymous functions and sets,
like (λ [a] (+ a 5)), ƒ(+ % 5), and ∈{2 4 6}." like (λ [a] (+ a 5)), ƒ(+ % 5), and ∈{2 4 6}."
(font-lock-add-keywords mode (font-lock-add-keywords mode
`(("(\\(fn\\)[\[[:space:]]" `(("(\\(fn\\)[\n\[[:space:]]"
(0 (progn (compose-region (match-beginning 1) (0 (progn (compose-region (match-beginning 1)
(match-end 1) "λ")))) (match-end 1) "λ"))))
("(\\(partial\\)[\[[:space:]]" ("(\\(partial\\)[\[[:space:]]"
(0 (progn (compose-region (match-beginning 1) (0 (progn (compose-region (match-beginning 1)
(match-end 1) "Ƥ")))) (match-end 1) "Ƥ"))))
("(\\(comp\\)[\[[:space:]]" ("(\\(comp\\)[\n\[[:space:]]"
(0 (progn (compose-region (match-beginning 1) (0 (progn (compose-region (match-beginning 1)
(match-end 1) "∘")))) (match-end 1) "∘"))))
("\\(#\\)(" ("\\(#\\)("