Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion codemirror/clojure-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ CodeMirror.defineMode("clojure", function () {
keyword_char: /[^\s\(\[\;\)\]]/,
basic: /[\w\$_\-\.\*\+\/\?\><!]/,
lang_keyword: /[\w\*\+!\-_?:\/\.#=><]/,
block_indent: /^(?:def|with)[^\/]+$|\/(?:def|with)/
};

function stateStack(indent, type, prev) { // represents a state stack object
Expand Down Expand Up @@ -117,7 +118,7 @@ CodeMirror.defineMode("clojure", function () {
state.mode = "comment";
pushStack(state, indentTemp + INDENT_WORD_SKIP, "comment");
} else if (keyWord.length > 0 && (indentKeys.propertyIsEnumerable(keyWord) ||
/^(?:def|with)/.test(keyWord))) { // indent-word
tests.block_indent.test(keyWord))) { // indent-word
pushStack(state, indentTemp + INDENT_WORD_SKIP, ch);
} else { // non-indent word
// we continue eating the spaces
Expand Down