diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index cfb0b3a0de..c0754efad4 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -663,13 +663,14 @@ An end of a defun is found by moving forward from the beginning of one." (or (boundp 'font-lock-variable-name-face) (setq font-lock-variable-name-face font-lock-type-face)) + (add-hook 'ruby-mode-hook '(lambda () (make-local-variable 'font-lock-syntactic-keywords) (setq font-lock-syntactic-keywords '(("\\$\\([#\"'`$\\]\\)" 1 (1 . nil)) ("\\(#\\)[{$@]" 1 (1 . nil)) - ("\\(/\\)\\([^/]\\|\\\\/\\)*\\(/\\)" + ("\\(/\\)\\([^/\n]\\|\\\\/\\)*\\(/\\)" (1 (7 . ?')) (3 (7 . ?'))))) (make-local-variable 'font-lock-defaults) |