diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index a3cdff3c7a..fcf3d535c0 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -672,7 +672,9 @@ An end of a defun is found by moving forward from the beginning of one." ("\\(#\\)[{$@]" 1 (1 . nil)) ("\\(/\\)\\([^/\n]\\|\\/\\)*\\(/\\)" (1 (7 . ?')) - (3 (7 . ?'))))) + (3 (7 . ?'))) + ("^\\(=\\)begin\\(\\s \\|$\\)" 1 (7 . nil)) + ("^\\(=\\)end\\(\\s \\|$\\)" 1 (7 . nil)))) (make-local-variable 'font-lock-defaults) (setq font-lock-defaults '((ruby-font-lock-keywords) nil nil)) (setq font-lock-keywords ruby-font-lock-keywords))) |