From 12adebe94e4026ce2fb961f87a5790ec7693ae94 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 22 Jun 2013 17:25:43 +0400 Subject: [PATCH] * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `catch', add some more keyword-like methods. http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00911.html --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/ruby-mode.el | 17 +++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec5e91005ec..4c41e712226 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2013-06-22 Dmitry Gutov + + * progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `catch', + add some more keyword-like methods. + http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00911.html + 2013-06-22 Juanma Barranquero * bs.el (bs-buffer-show-mark): Make defvar-local. diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 0755afc285f..ab5634e5274 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1735,7 +1735,6 @@ See `font-lock-syntax-table'.") "begin" "break" "case" - "catch" "class" "def" "defined?" @@ -1770,14 +1769,28 @@ See `font-lock-syntax-table'.") (regexp-opt '("alias_method" "autoload" + "attr" + "attr_accessor" + "attr_reader" + "attr_writer" + "catch" + "define_method" + "extend" + "fail" + "include" + "lambda" + "loop" "module_function" "private" + "proc" "protected" "public" "raise" + "refine" "require" "require_relative" - "throw") + "throw" + "using") 'symbols) "\\)") 2 -- 2.39.2