summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index da31f989d1..d29e3bd82c 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -750,6 +750,10 @@ An end of a defun is found by moving forward from the beginning of one."
"\\|")
"\\)\\>\\([^_]\\|$\\)")
2)
+ ;; regexps
+ '("/\\(\\(\\\\/\\|[^/\n]\\)*\\)/\\([iop]*\\)"
+ (1 font-lock-string-face)
+ (3 font-lock-constant-face))
;; variables
'("\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(nil\\|self\\|true\\|false\\)\\b\\([^_]\\|$\\)"
2 font-lock-variable-name-face)