emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8142fc9: ruby-mode: Fix a "required arguments" conf


From: Dmitry Gutov
Subject: [Emacs-diffs] master 8142fc9: ruby-mode: Fix a "required arguments" confusion
Date: Fri, 20 Mar 2015 05:04:26 +0000

branch: master
commit 8142fc97af742e083fb83e4d0470da59b123a467
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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.
---
 lisp/ChangeLog              |    6 ++++++
 lisp/progmodes/ruby-mode.el |    7 +++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index df2211b..0172cd0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2015-03-20  Dmitry Gutov  <address@hidden>
+
+       * 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  <address@hidden>
 
        * lisp/progmodes/cperl-mode.el (cperl-electric-backspace):
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 921ca31..f2fb95c 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]