[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 81fc95b: ruby-mode.el: puts and printf do not require args
From: |
Lars Ingebrigtsen |
Subject: |
master 81fc95b: ruby-mode.el: puts and printf do not require args |
Date: |
Mon, 3 May 2021 04:32:20 -0400 (EDT) |
branch: master
commit 81fc95bf22cadc09178e7ccfc13eba531660ddcd
Author: Steve Purcell <steve@sanityinc.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
ruby-mode.el: puts and printf do not require args
* 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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 3577282..0c54a1d 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -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"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 81fc95b: ruby-mode.el: puts and printf do not require args,
Lars Ingebrigtsen <=