branch: externals/ruby-end
commit a761a0d84ce04b07d5555033fe63ad3c4f877364
Author: Roman Sokolov <[email protected]>
Commit: Roman Sokolov <[email protected]>
Fix expand on modifiers
When using statement modifiers, e.g.:
return 42 if has_towel?
ruby-end-mode expand it and annoy me :-)
This commit fixes it.
---
ruby-end.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruby-end.el b/ruby-end.el
index 62e1f4becb..a2cee7366e 100644
--- a/ruby-end.el
+++ b/ruby-end.el
@@ -57,7 +57,7 @@
"Keymap for `ruby-end-mode'.")
(defconst ruby-end-expand-before-re
-
"\\(?:^\\|\\s-+\\)\\(?:def\\|if\\|class\\|module\\|unless\\|case\\|while\\|do\\|until\\|for\\|begin\\)"
+
"^\\s-*\\(?:def\\|if\\|class\\|module\\|unless\\|case\\|while\\|do\\|until\\|for\\|begin\\)"
"Regular expression matching before point.")
(defconst ruby-end-expand-after-re