unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Steve Purcell <steve@sanityinc.com>
To: Juri Linkov <juri@linkov.net>
Cc: 48180@debbugs.gnu.org, Dmitry Gutov <dgutov@yandex.ru>
Subject: bug#48180: ruby-mode.el: fix font lock for puts and printf
Date: Tue, 4 May 2021 08:31:53 +1200	[thread overview]
Message-ID: <E6CEA791-636A-4D2A-AE74-6EFA4B2C8B6B@sanityinc.com> (raw)
In-Reply-To: <875yzz24bf.fsf@mail.linkov.net>

On 4 May 2021, at 04:42, Juri Linkov <juri@linkov.net> 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.






  reply	other threads:[~2021-05-03 20:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03  1:01 bug#48180: ruby-mode.el: fix font lock for puts and printf Steve Purcell
2021-05-03  7:41 ` Lars Ingebrigtsen
2021-05-03 10:17 ` Dmitry Gutov
2021-05-03 16:42   ` Juri Linkov
2021-05-03 20:31     ` Steve Purcell [this message]
2021-05-03 20:42       ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E6CEA791-636A-4D2A-AE74-6EFA4B2C8B6B@sanityinc.com \
    --to=steve@sanityinc.com \
    --cc=48180@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).