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

[clojure mode] Always align [-lists to their left bracket

Closes #446
parent 3d90a1bb
No related branches found
No related tags found
Loading
......@@ -153,12 +153,11 @@ CodeMirror.defineMode("clojure", function (config, mode) {
(;something else, bracket, etc.
*/
while ((letter = stream.eat(tests.keyword_char)) != null) {
if (ch == "(") while ((letter = stream.eat(tests.keyword_char)) != null) {
keyWord += letter;
}
if (keyWord.length > 0 && indentKeys.propertyIsEnumerable(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