Skip to content

Commit

Permalink
fix if/else/else if indentation in CM
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jun 3, 2022
1 parent 35be5ed commit feda9c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codemirror.js
Expand Up @@ -207,6 +207,7 @@
state.else_block = true;
} else if (word == 'if' && state.else_block) {
state.else_block = false;
--state.indentDepth;
return style;
} else {
state.else_block = false;
Expand Down

0 comments on commit feda9c8

Please sign in to comment.