From: Dmitry Gutov Date: Fri, 20 Mar 2015 05:03:54 +0000 (+0200) Subject: ruby-mode: Fix a "required arguments" confusion X-Git-Tag: emacs-25.0.90~2564^2~122 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8142fc97af742e083fb83e4d0470da59b123a467;p=emacs.git ruby-mode: Fix a "required arguments" confusion * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `at_exit' and `callcc' to the "methods with required arguments" section, they need a block argument. Remove a `throw' duplicate. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index df2211be169..0172cd052fe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2015-03-20 Dmitry Gutov + + * progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `at_exit' + and `callcc' to the "methods with required arguments" section, + they need a block argument. Remove a `throw' duplicate. + 2015-03-19 Vibhav Pant * lisp/progmodes/cperl-mode.el (cperl-electric-backspace): diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 921ca314004..f2fb95ce59a 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -2069,8 +2069,10 @@ See `font-lock-syntax-table'.") ruby-font-lock-keyword-beg-re (regexp-opt '( ;; built-in methods on Kernel + "at_exit" "autoload" "autoload?" + "callcc" "catch" "eval" "exec" @@ -2124,10 +2126,8 @@ See `font-lock-syntax-table'.") "__dir__" "__method__" "abort" - "at_exit" "binding" "block_given?" - "callcc" "caller" "exit" "exit!" @@ -2143,8 +2143,7 @@ See `font-lock-syntax-table'.") "readline" "readlines" "sleep" - "srand" - "throw") + "srand") 'symbols)) (1 font-lock-builtin-face)) ;; Here-doc beginnings.