We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d4200 commit c6a935cCopy full SHA for c6a935c
mode/clojure/clojure.js
@@ -167,8 +167,8 @@ CodeMirror.defineMode("clojure", function (options) {
167
168
if (ch === "\\") {stream.next(); readSymbol(stream); return "string-2";}
169
if (ch === '"') return (state.tokenize = inString)(stream, state);
170
- if (ch === "(" || ch === "[" || ch === "{") {tokenType = "open"; return "bracket";}
171
- if (ch === ")" || ch === "]" || ch === "}") {tokenType = "close"; return "bracket";}
+ if (/[(\[{]/.test(ch)) {tokenType = "open"; return "bracket";}
+ if (/[)\]}]/.test(ch)) {tokenType = "close"; return "bracket";}
172
if (ch === ";") {stream.skipToEnd(); tokenType = "space"; return "comment";}
173
if (/[#'@^`~]/.test(ch)) return "meta";
174
0 commit comments