We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bfba4f1 + d8c05b5 commit 0431f2dCopy full SHA for 0431f2d
1 file changed
lib/ace/mode/ruby.js
@@ -63,7 +63,7 @@ oop.inherits(Mode, TextMode);
63
64
if (state == "start") {
65
var match = line.match(/^.*[\{\(\[]\s*$/);
66
- var startingClassOrMethod = line.match(/^\s*(class|def)\s.*$/);
+ var startingClassOrMethod = line.match(/^\s*(class|def|module)\s.*$/);
67
var startingDoBlock = line.match(/.*do(\s*|\s+\|.*\|\s*)$/);
68
var startingConditional = line.match(/^\s*(if|else)\s*/)
69
if (match || startingClassOrMethod || startingDoBlock || startingConditional) {
0 commit comments