Skip to content
Snippets Groups Projects
Commit 8f2dd947 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[clojure mode] Count words starting with def or with as 'indenting keywords'

Closes #753
parent aae8b379
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,8 @@ CodeMirror.defineMode("clojure", function (config, mode) {
keyWord += letter;
}
if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(keyWord)) { // indent-word
if (keyWord.length > 0 && (indentKeys.propertyIsEnumerable(keyWord) ||
/^(?:def|with)/.test(keyWord))) { // indent-word
pushStack(state, indentTemp + INDENT_WORD_SKIP, ch);
} else { // non-indent word
// we continue eating the spaces
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment