Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1632b36

Browse files
committedJul 13, 2022
ADD many missing clojure.core macros to font-lock declaration
1 parent d82417c commit 1632b36

File tree

1 file changed

+84
-9
lines changed

1 file changed

+84
-9
lines changed
 

‎clojure-mode.el

+84-9
Original file line numberDiff line numberDiff line change
@@ -841,15 +841,90 @@ 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+
"definline"
863+
"definterface"
864+
"defmethod"
865+
"defmulti"
866+
"defn-"
867+
"defonce"
868+
"defprotocol"
869+
"defrecord"
870+
"defstruct"
871+
"deftype"
872+
"delay"
873+
"doall"
874+
"dorun"
875+
"doseq"
876+
"dosync"
877+
"dotimes"
878+
"doto"
879+
"extend-protocol"
880+
"extend-type"
881+
"fn"
882+
"for"
883+
"future"
884+
"gen-class"
885+
"gen-interface"
886+
"if-let"
887+
"if-not"
888+
"if-some"
889+
"import"
890+
"in-ns"
891+
"io!"
892+
"lazy-cat"
893+
"lazy-seq"
894+
"let"
895+
"letfn"
896+
"locking"
897+
"loop"
898+
"memfn"
899+
"ns"
900+
"or"
901+
"proxy"
902+
"proxy-super"
903+
"pvalues"
904+
"refer-clojure"
905+
"reify"
906+
"some->"
907+
"some->>"
908+
"sync"
909+
"time"
910+
"vswap!"
911+
"when"
912+
"when-first"
913+
"when-let"
914+
"when-not"
915+
"when-some"
916+
"while"
917+
"with-bindings"
918+
"with-in-str"
919+
"with-loading-context"
920+
"with-local-vars"
921+
"with-open"
922+
"with-out-str"
923+
"with-precision"
924+
"with-redefs"
925+
"with-redefs-fn"
926+
)
927+
t)
853928
"\\>")
854929
1 font-lock-keyword-face)
855930
;; Macros similar to let, when, and while

0 commit comments

Comments
 (0)
Please sign in to comment.