all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#47112: cperl-mode: Wrong highlighting of tr, y, q with _
@ 2021-03-12 20:31 E. Choroba
  2021-03-13  0:27 ` bug#47112: Don't interpret '_' as word boundary [PATCH] Harald Jörg
  0 siblings, 1 reply; 3+ messages in thread
From: E. Choroba @ 2021-03-12 20:31 UTC (permalink / raw)
  To: 47112

The quote-like operators q, qq, qr, qw, qx, tr, y, m, and s can use word 
characters as quoting characters, but then they must be followed by
whitespace. In Perl, "_" is also a word character, but cperl-mode
doesn't follow this rule. E.g.

sub y_max {

is highlighted as if the y was the transliteration operator, but in
fact "y_max" is a subroutine name, as there's no space after "y".

 	Ch.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-18  7:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-12 20:31 bug#47112: cperl-mode: Wrong highlighting of tr, y, q with _ E. Choroba
2021-03-13  0:27 ` bug#47112: Don't interpret '_' as word boundary [PATCH] Harald Jörg
2021-03-18  7:06   ` bug#47112: cperl-mode: Wrong highlighting of tr, y, q with _ Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.