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

[julia mode] Properly indent elseif lines

Closes #4519
parent d0e3b2e7
No related branches found
No related tags found
No related merge requests found
...@@ -388,7 +388,7 @@ CodeMirror.defineMode("julia", function(config, parserConf) { ...@@ -388,7 +388,7 @@ CodeMirror.defineMode("julia", function(config, parserConf) {
indent: function(state, textAfter) { indent: function(state, textAfter) {
var delta = 0; var delta = 0;
if ( textAfter === ']' || textAfter === ')' || textAfter === "end" || if ( textAfter === ']' || textAfter === ')' || textAfter === "end" ||
textAfter === "else" || textAfter === "catch" || textAfter === "else" || textAfter === "catch" || textAfter === "elseif" ||
textAfter === "finally" ) { textAfter === "finally" ) {
delta = -1; delta = -1;
} }
......
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