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

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

Re: Angle brackets matching


From: David Kastrup
Subject: Re: Angle brackets matching
Date: Mon, 21 Aug 2006 21:47:19 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Harald Hanche-Olsen <hanche@math.ntnu.no> writes:

> + Faheem Mitha <faheem@email.unc.edu>:
>
> | Emacs has nice functionality for paren matching. Ie. if I put the
> | cursor outside a paren, it highlights both that paren and the matching
> | paren. However, it does not do the same for angle brackets. This would
> | be very useful, particularly when writing C++ templates. :-)
>
> These might be useful, at least if you use paren-mode:
>
>     (modify-syntax-entry ?< "(>")
>     (modify-syntax-entry ?> ")<")

I am not sure.  C++ syntax is such a mess.  For example, you can write
things like

typedef xxx = wurks::typ<a,sizeof(zap)<<2>4>;

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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