Skip to content

Commit cf4a4a4

Browse files
finalfantasiamarijnh
authored andcommitted
[clojure mode] Add a few other forms that have body parameter.
1 parent c3d8336 commit cf4a4a4

File tree

2 files changed

+36
-381
lines changed

2 files changed

+36
-381
lines changed

mode/clojure/clojure.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,14 @@ CodeMirror.defineMode("clojure", function (options) {
138138
"with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?",
139139
"zipmap"];
140140
var formsThatHaveBodyParameter = [
141-
"assoc", "binding", "bound-fn", "case", "catch", "comment", "cond",
142-
"condp", "def", "defmethod", "defn", "defmacro", "defprotocol",
143-
"defrecord", "defstruct", "deftype", "do", "doseq", "dotimes", "doto",
144-
"extend", "extend-protocol", "extend-type", "fn", "for", "future", "if",
145-
"if-let", "if-not", "let", "letfn", "locking", "loop", "ns", "proxy",
146-
"reify", "struct-map", "try", "when", "when-first", "when-let",
147-
"when-not", "when-some", "while", "with-open", "with-precision"];
141+
"binding", "bound-fn", "case", "catch", "comment", "cond", "cond->",
142+
"cond->>", "condp", "def", "definterface", "defmethod", "defn",
143+
"defmacro", "defprotocol", "defrecord", "defstruct", "deftype", "do",
144+
"doseq", "dotimes", "doto", "extend", "extend-protocol", "extend-type",
145+
"fn", "for", "future", "if", "if-let", "if-not", "if-some", "let",
146+
"letfn", "locking", "loop", "ns", "proxy", "reify", "struct-map", "try",
147+
"when", "when-first", "when-let", "when-not", "when-some", "while",
148+
"with-open", "with-precision"];
148149

149150
CodeMirror.registerHelper("hintWords", "clojure",
150151
[].concat(atoms, specialForms, coreSymbols));

0 commit comments

Comments
 (0)