[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Raw strings (experimental patches inside)
From: |
Stephen J. Turnbull |
Subject: |
Re: Raw strings (experimental patches inside) |
Date: |
Sat, 11 Aug 2012 16:49:16 +0900 |
Dmitry Gutov writes:
> This would be a backward-incompatible change to the regexp engine,
> wouldn't it?
Not to the matching engine, but to the regexp compiler.
It would be reasonable easy to implement backward-compatibly: if a
string's first character has a non-nil "punc-are-operators" property,
then all punctuation would be interpreted as regex operators *unless*
they are escaped.
Neither the property name nor the API are likely to be optimal, but it
would work. You could also do it with some kind of variable.
- Re: Raw strings (experimental patches inside), (continued)
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/10
- Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/10
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/11
- Re: Raw strings (experimental patches inside), Dmitri Paduchikh, 2012/08/11
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/11
- Re: Raw strings (experimental patches inside), Vr Rm, 2012/08/10
- Re: Raw strings (experimental patches inside), Davis Herring, 2012/08/10
- Learning Emacs regexp (was: Re: Raw strings (experimental patches inside)), chad, 2012/08/10
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/11
Re: Raw strings (experimental patches inside), Dmitry Gutov, 2012/08/10
Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/11