GNU bug report logs -
#63328
CC Mode 5.35.2 (Java//l); Constructor function not fontified as such
Previous Next
Reported by: Po Lu <luangruo <at> yahoo.com>
Date: Sat, 6 May 2023 11:24:01 UTC
Severity: normal
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Alan Mackenzie <acm <at> muc.de> writes:
> I actually put a class around these lines for testing, as follows:
>
> class EmacsInputConnection {
> public
> EmacsInputConnection (EmacsView view)
> {
> super (view, true);
> }
> }
>
> .. I don't think Java classes can have constructors anywhere but inside
> the class of the same name (please correct me if I'm wrong, here).
Sorry for that confusion.
> To fix this reuired some tweaking of the low level syntactic analysis
> code. Could I ask you, please, to test the enclosed patch (which should
> apply cleanly to either master or the emacs-29 branch). Then please let
> me know how the test went.
>
> Thanks!
It seems to work, but perhaps it would be safer to change that code only
in Java mode, and not in the rest of the CC modes?
This bug report was last modified 2 years and 51 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.