[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.
Stefan
- Re: non word abbrevs, Jean-Christophe Helary, 2021/11/01
- Re: non word abbrevs, Emanuel Berg, 2021/11/01
- Re: non word abbrevs,
Stefan Monnier <=
- Re: non word abbrevs, Jean-Christophe Helary, 2021/11/01
- Re: non word abbrevs, Stefan Monnier, 2021/11/01
- Re: non word abbrevs, Jean-Christophe Helary, 2021/11/01
- Re: non word abbrevs, Leo Butler, 2021/11/01
- Re: non word abbrevs, tomas, 2021/11/01
- Re: non word abbrevs, Stefan Monnier, 2021/11/01
- Re: non word abbrevs, Jean-Christophe Helary, 2021/11/06
- Re: non word abbrevs, Stefan Monnier, 2021/11/06
- Re: non word abbrevs, Jean-Christophe Helary, 2021/11/06
- Re: non word abbrevs, Stefan Monnier, 2021/11/06