]> git.eshelyaron.com Git - emacs.git/commitdiff
ruby-mode: Fix a "required arguments" confusion
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 20 Mar 2015 05:03:54 +0000 (07:03 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 20 Mar 2015 05:03:54 +0000 (07:03 +0200)
* 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.

lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index df2211be169901ca3b9b5feba932da45123ac8fb..0172cd052febbbc3b9fff73d94a54e004d2fc9d7 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-20  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * 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  <vibhavp@gmail.com>
 
        * lisp/progmodes/cperl-mode.el (cperl-electric-backspace):
index 921ca314004973ef6e4e1ec607e7ccf925cb3506..f2fb95ce59a86ce4d0feb453e9dd209793329aa7 100644 (file)
@@ -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.