Skip to content

Commit 0431f2d

Browse files
committed
Merge pull request ajaxorg#1830 from yury/patch-1
Indent after `module` keyword
2 parents bfba4f1 + d8c05b5 commit 0431f2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ace/mode/ruby.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ oop.inherits(Mode, TextMode);
6363

6464
if (state == "start") {
6565
var match = line.match(/^.*[\{\(\[]\s*$/);
66-
var startingClassOrMethod = line.match(/^\s*(class|def)\s.*$/);
66+
var startingClassOrMethod = line.match(/^\s*(class|def|module)\s.*$/);
6767
var startingDoBlock = line.match(/.*do(\s*|\s+\|.*\|\s*)$/);
6868
var startingConditional = line.match(/^\s*(if|else)\s*/)
6969
if (match || startingClassOrMethod || startingDoBlock || startingConditional) {

0 commit comments

Comments
 (0)