GNU bug report logs - #18378
wrong fontification of Java code

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Mon, 1 Sep 2014 09:49:02 UTC

Severity: minor

Tags: patch

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 18378 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Alan Mackenzie <acm <at> muc.de>
Cc: Jordon Biondo <jordonbiondo <at> gmail.com>, 18378 <at> debbugs.gnu.org,
 Paul Pogonyshev <pogonyshev <at> gmail.com>
Subject: Re: bug#18378: [Patch] wrong fontification of Java code
Date: Thu, 23 Jan 2020 15:13:05 +0100
Hi Alan,

Alan Mackenzie <acm <at> muc.de> writes:

> I missed this bug report back in 2014.  The code has moved around so
> much since then that Jordon's patch no longer applies.  But a simple
> patch with the same idea appears to fix this bug:

Thanks for taking a look.

With your fix, applied on the master branch, in the example given:

    class X
    {
        public void x ()
        {
            for (int this_is_not_a_function_name : getX ()) {
            }
        }
    }

The "int" no longer has font-lock-type-face.  Should it?

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.