9 Apr 2005 20:01
Re: CC Mode 5.30.9 (C++); Inconsistent syntax analysis of line with just ( -- normally topmost-intro-cont, but statement-cont when the function is named operator==
Martin Stjernholm <mast <at> lysator.liu.se>
2005-04-09 18:01:50 GMT
2005-04-09 18:01:50 GMT
"Robert N. Mcdonnell" <RMcdonnell <at> beckcomputers.com> wrote: > Given the following as the only text in a c++-mode buffer: > > bool operator== > ( > ); > > \C-c\C-s on the second line produces ((statement-cont 1)) > > If I change the function name, in particular to operator!= > > bool operator!= > ( > ); > > \C-c\C-s on the second line produces ((topmost-intro-cont 1)) Thanks for the report. The patch below fixes this case. However, other operator declarations like operator<, operator<<, operator, and operator() are still not treated correctly. That requires a larger fix that I've only made in the development version. diff -u -r5.419.2.33 cc-engine.el --- cc-engine.el 7 Oct 2004 11:46:35 -0000 5.419.2.33 +++ cc-engine.el 9 Apr 2005 17:57:40 -0000 <at> <at> -6103,7 +6103,9 <at> <at> ;; Note: We use the fact that lim is always after any ;; preceding brace sexp. (while (and (zerop (c-backward-token-2 1 t lim))(Continue reading)
RSS Feed