Skip to content
This repository has been archived by the owner on Apr 18, 2021. It is now read-only.

Commit

Permalink
* misc/ruby-mode.el, misc/ruby-electric.el: use regexp-opt where
Browse files Browse the repository at this point in the history
  possible for more efficient regexps.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk/misc@19205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Sep 6, 2008
1 parent 39ebdd0 commit d26c115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ruby-electric.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d26c115

Please sign in to comment.