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).