Commit 81fc95bf authored by Steve Purcell's avatar Steve Purcell Committed by Lars Ingebrigtsen
Browse files

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).
parent 73513c36
Pipeline #10608 failed with stages
in 18 minutes and 4 seconds
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment