fix ruby unindent behavior

fixes #1451
This commit is contained in:
nightwing 2013-05-28 23:48:27 +04:00
commit 261e6cfc05

View file

@ -75,7 +75,7 @@ oop.inherits(Mode, TextMode);
};
this.checkOutdent = function(state, line, input) {
return /\s+end$/.test(line + input) || /\s+}$/.test(line + input) || /\s+else$/.test(line + input);
return /^\s+end$/.test(line + input) || /^\s+}$/.test(line + input) || /^\s+else$/.test(line + input);
};
this.autoOutdent = function(state, doc, row) {