vendor/assets/javascripts/codemirror/modes/julia.js in codemirror-rails-5.8 vs vendor/assets/javascripts/codemirror/modes/julia.js in codemirror-rails-5.9
- old
+ new
@@ -281,10 +281,10 @@
indent: function(state, textAfter) {
var delta = 0;
if(textAfter=="end" || textAfter=="]" || textAfter=="}" || textAfter=="else" || textAfter=="elseif" || textAfter=="catch" || textAfter=="finally") {
delta = -1;
}
- return (state.scopes.length + delta) * 4;
+ return (state.scopes.length + delta) * _conf.indentUnit;
},
lineComment: "#",
fold: "indent",
electricChars: "edlsifyh]}"