summaryrefslogtreecommitdiff
path: root/misc/ruby-electric.el
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 22:34:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 22:34:46 +0000
commitd250d79e5bf7e5d4e1239a4f135d1325ffe8cf56 (patch)
tree82720fedd6e783fa20aa53bf5ce0ff84c44dd99b /misc/ruby-electric.el
parent3f3584d6239ae3177c83523c8ac7398ce4d5e2ae (diff)
* misc/ruby-mode.el, misc/ruby-electric.el: use regexp-opt where
possible for more efficient regexps. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 c361089..e305d55 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)