Skip to content
  • Sponsor clojure-emacs/clojure-mode

  • Notifications You must be signed in to change notification settings
  • Fork 247

Commit 4559d91

Browse files
committedJul 15, 2022
ADD many missing clojure.core macros to font-lock declaration
1 parent d82417c commit 4559d91

File tree

2 files changed

+74
-9
lines changed

2 files changed

+74
-9
lines changed
 

‎CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Changes
66

7+
* [#622](https://github.com/clojure-emacs/clojure-mode/issues/622): Add font locking for missing clojure.core macros
78
* [#615](https://github.com/clojure-emacs/clojure-mode/issues/615): Support clojure-dart files.
89

910
## 5.14.0 (2022-03-07)

‎clojure-mode.el

+73-9
Original file line numberDiff line numberDiff line change
@@ -841,15 +841,79 @@ any number of matches of `clojure--sym-forbidden-rest-chars'."))
841841
(,(concat
842842
"(\\(?:clojure.core/\\)?"
843843
(regexp-opt
844-
'("letfn" "case" "cond" "cond->" "cond->>" "condp"
845-
"for" "when" "when-not" "when-let" "when-first" "when-some"
846-
"if-let" "if-not" "if-some"
847-
".." "->" "->>" "as->" "doto" "and" "or"
848-
"dosync" "doseq" "dotimes" "dorun" "doall"
849-
"ns" "in-ns"
850-
"with-open" "with-local-vars" "binding"
851-
"with-redefs" "with-redefs-fn"
852-
"declare") t)
844+
'(
845+
"->"
846+
"->>"
847+
".."
848+
"amap"
849+
"and"
850+
"areduce"
851+
"as->"
852+
"assert"
853+
"binding"
854+
"bound-fn"
855+
"case"
856+
"comment"
857+
"cond"
858+
"cond->"
859+
"cond->>"
860+
"condp"
861+
"declare"
862+
"delay"
863+
"doall"
864+
"dorun"
865+
"doseq"
866+
"dosync"
867+
"dotimes"
868+
"doto"
869+
"extend-protocol"
870+
"extend-type"
871+
"for"
872+
"future"
873+
"gen-class"
874+
"gen-interface"
875+
"if-let"
876+
"if-not"
877+
"if-some"
878+
"import"
879+
"in-ns"
880+
"io!"
881+
"lazy-cat"
882+
"lazy-seq"
883+
"let"
884+
"letfn"
885+
"locking"
886+
"loop"
887+
"memfn"
888+
"ns"
889+
"or"
890+
"proxy"
891+
"proxy-super"
892+
"pvalues"
893+
"refer-clojure"
894+
"reify"
895+
"some->"
896+
"some->>"
897+
"sync"
898+
"time"
899+
"vswap!"
900+
"when"
901+
"when-first"
902+
"when-let"
903+
"when-not"
904+
"when-some"
905+
"while"
906+
"with-bindings"
907+
"with-in-str"
908+
"with-loading-context"
909+
"with-local-vars"
910+
"with-open"
911+
"with-out-str"
912+
"with-precision"
913+
"with-redefs"
914+
"with-redefs-fn"
915+
)
916+
t)
853917
"\\>")
854918
1 font-lock-keyword-face)
855919
;; Macros similar to let, when, and while

0 commit comments

Comments
 (0)