Skip to content

Commit 7b00c30

Browse files
committed
[ruby mode] Make else and elsif electric
Closes codemirror#4345
1 parent e2c146e commit 7b00c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/ruby/ruby.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ CodeMirror.defineMode("ruby", function(config) {
275275
(state.continuedLine ? config.indentUnit : 0);
276276
},
277277

278-
electricInput: /^\s*(?:end|rescue|\})$/,
278+
electricInput: /^\s*(?:end|rescue|elsif|else|\})$/,
279279
lineComment: "#"
280280
};
281281
});

0 commit comments

Comments
 (0)