aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ruby-electric.el
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ruby-electric.el')
-rw-r--r--misc/ruby-electric.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el
index c361089938..e305d55afd 100644
--- a/misc/ruby-electric.el
+++ b/misc/ruby-electric.el
@@ -67,8 +67,8 @@
(?\` . ?\`)
(?\" . ?\")))
-(defcustom ruby-electric-simple-keywords-re
- "\\(def\\|if\\|class\\|module\\|unless\\|case\\|while\\|do\\|until\\|for\\|begin\\)"
+(defcustom ruby-electric-simple-keywords-re
+ (regexp-opt '("def" "if" "class" "module" "unless" "case" "while" "do" "until" "for" "begin") t)
"*Regular expresion matching keywords for which closing 'end'
is to be inserted."
:type 'regexp :group 'ruby-electric)