]> git.eshelyaron.com Git - emacs.git/commitdiff
ruby-mode.el: puts and printf do not require args
authorSteve Purcell <steve@sanityinc.com>
Mon, 3 May 2021 07:41:44 +0000 (09:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 3 May 2021 07:41:44 +0000 (09:41 +0200)
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): puts and
printf can be called without arguments, so the font locking of
"bare" calls to either is incorrect.  The fix is to font-lock them
as for other kernel methods which accepts zero or more arguments
(bug#48180).

lisp/progmodes/ruby-mode.el

index 35772827ce250701c2d38b7373edcdbdd7a34f9a..0c54a1d27a6ad804fbcad3723a1038579dd68edb 100644 (file)
@@ -2127,11 +2127,9 @@ It will be properly highlighted even when the call omits parens.")
           "loop"
           "open"
           "p"
-          "print"
           "printf"
           "proc"
           "putc"
-          "puts"
           "require"
           "require_relative"
           "spawn"
@@ -2180,9 +2178,11 @@ It will be properly highlighted even when the call omits parens.")
           "fork"
           "global_variables"
           "local_variables"
+          "print"
           "private"
           "protected"
           "public"
+          "puts"
           "raise"
           "rand"
           "readline"