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
[Message part 1 (text/plain, inline)]
Hello, Po.
Thanks for yet another bug report!
On Sat, May 06, 2023 at 19:23:27 +0800, Po Lu via CC-Mode-help wrote:
> Package: cc-mode
> In the following code:
> public
> EmacsInputConnection (EmacsView view)
> {
> super (view, true);
> `EmacsInputConnection', a constructor function, is not fontified as
> such. Its parameter list is not fontified either.
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).
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!
> Emacs : GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu)
> of 2023-04-29
> Package: CC Mode 5.35.2 (Java//l)
> Buffer Style: GNU
> c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-string-delim gen-comment-delim syntax-properties category-properties 1-bit)
[ .... ]
--
Alan Mackenzie (Nuremberg, Germany).
[diff.20230511.diff (text/plain, attachment)]
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.