parent
d40a9a228f
commit
261e6cfc05
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue