aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index e37cc4eab8..996df17f53 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -1236,9 +1236,8 @@ buffer position `limit' or the end of the buffer."
1 font-lock-function-name-face)
;; keywords
(cons (concat
- "\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(defined\\?\\|\\("
- (mapconcat
- 'identity
+ "\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(defined\\?\\|"
+ (regexp-opt
'("alias"
"and"
"begin"
@@ -1275,8 +1274,8 @@ buffer position `limit' or the end of the buffer."
"while"
"yield"
)
- "\\|")
- "\\)\\>\\)")
+ t)
+ "\\_>\\)")
2)
;; here-doc beginnings
(list ruby-here-doc-beg-re 0 'font-lock-string-face)