Skip to content

Commit

Permalink
[ruby mode] Don't add extra indentation on 'then'
Browse files Browse the repository at this point in the history
Closes #6927
  • Loading branch information
marijnh committed Jun 3, 2022
1 parent 898004f commit 70572f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/ruby/ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var keywordList = [
"require_relative", "extend", "autoload", "__END__", "__FILE__", "__LINE__", "__dir__"
], keywords = wordObj(keywordList);

var indentWords = wordObj(["def", "class", "case", "for", "while", "until", "module", "then",
var indentWords = wordObj(["def", "class", "case", "for", "while", "until", "module",
"catch", "loop", "proc", "begin"]);
var dedentWords = wordObj(["end", "until"]);
var opening = {"[": "]", "{": "}", "(": ")"};
Expand Down

0 comments on commit 70572f1

Please sign in to comment.