bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50640: 28.0.50; incorrect highlighting in C++ mode


From: Vincent Lefevre
Subject: bug#50640: 28.0.50; incorrect highlighting in C++ mode
Date: Fri, 26 Aug 2022 14:24:08 +0200
User-agent: Mutt/2.2.7+32 (d84696f2) vl-149028 (2022-08-22)

On 2022-08-26 13:42:24 +0200, Lars Ingebrigtsen wrote:
> Alan Mackenzie <acm@muc.de> writes:
> 
> > There's really not much which can be done about this in CC Mode, sorry.
> > CC Mode's analysis of ambiguous C++ constructs is not very deep, so it
> > sometimes gets it wrong, as here.
> >
> > I would be in favour of closing this bug as "won't fix" (actually, can't
> > fix).
> 
> OK; closing this as a "wontfix", then.

Isn't it really possible to have an option to forbid && and ||
in <...> constructs?

I think that this would be useful in practice, because when && or ||
is involved, < and > around them probably mean comparisons.

Note that the issue is more general than nested < .. < .. > .. >.
Bad highlighting also occurs just with "a < b || c > d".

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]