From 70572f115bf8fa58b5c19936a6b0a9f725a8c192 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 3 Jun 2022 08:29:22 +0200 Subject: [PATCH] [ruby mode] Don't add extra indentation on 'then' Closes https://github.com/codemirror/CodeMirror/issues/6927 --- mode/ruby/ruby.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/ruby/ruby.js b/mode/ruby/ruby.js index 85bbfc657f..67ae0e3f51 100644 --- a/mode/ruby/ruby.js +++ b/mode/ruby/ruby.js @@ -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 = {"[": "]", "{": "}", "(": ")"};