[Top][All Lists]

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

Re: non word abbrevs

From: Stefan Monnier
Subject: Re: non word abbrevs
Date: Mon, 01 Nov 2021 08:03:00 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>     :regexp "\(<?[-=]>?\)")
> I must be missing something.

Hmmm... backslashes?  ;-)
The above string is the same as "(<?[-=]>?)" (in recentish Emacsen the
above backslashes should presumably be highlighted in
a font-lock-warning color for that reason).

Beware also that this regexp is matched backwards and stops as soon as
it finds a match, so it finds the *shortest* match rather than the
longest match.  IOW the <? part will always match the empty string.


reply via email to

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