Subject: bug#48180: ruby-mode.el: fix font lock for puts and printf

From: Steve Purcell <[email-masked]>
Date: Tue, 4 May 2021 08:31:53 +1200

On 4 May 2021, at 04:42, Juri Linkov <[email-masked]> wrote:
> 
>> Is that important? Like, is anybody likely to call either without args?
>> font-lock is not a precise facility (that anything depends on), so we can
>> afford to be wrong in 0.01% cases.
> 
> It always bothered me that in ruby-mode highlighting was broken for printing
> without arguments, but I had no time to investigate.  Now finally this is fixed.
> Maybe some other printing like "p" could be fixed as well, but the
> already fixed "puts" and "print" is an improvement.

Yes, it’s actually pretty common to just use “puts” without args to print an empty line.