Merge pull request #1830 from yury/patch-1
Indent after `module` keyword
This commit is contained in:
commit
0431f2dafb
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ oop.inherits(Mode, TextMode);
|
||||||
|
|
||||||
if (state == "start") {
|
if (state == "start") {
|
||||||
var match = line.match(/^.*[\{\(\[]\s*$/);
|
var match = line.match(/^.*[\{\(\[]\s*$/);
|
||||||
var startingClassOrMethod = line.match(/^\s*(class|def)\s.*$/);
|
var startingClassOrMethod = line.match(/^\s*(class|def|module)\s.*$/);
|
||||||
var startingDoBlock = line.match(/.*do(\s*|\s+\|.*\|\s*)$/);
|
var startingDoBlock = line.match(/.*do(\s*|\s+\|.*\|\s*)$/);
|
||||||
var startingConditional = line.match(/^\s*(if|else)\s*/)
|
var startingConditional = line.match(/^\s*(if|else)\s*/)
|
||||||
if (match || startingClassOrMethod || startingDoBlock || startingConditional) {
|
if (match || startingClassOrMethod || startingDoBlock || startingConditional) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue