emacs-devel
[Top][All Lists]
Advanced

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

Re: Scan of regexps in Emacs (March 17)


From: Mattias Engdegård
Subject: Re: Scan of regexps in Emacs (March 17)
Date: Fri, 22 Mar 2019 15:12:16 +0100

22 mars 2019 kl. 14.26 skrev Stephen Leake <address@hidden>:
> 
> I recently ran into a problem with this; I had a regexp with `-' at the
> end, then edited it to add another range, without noticing the trailing
> `-':
> 
> before: [0-9a-zA-Z_-]
> after: [0-9a-zA-Z_-\x80-\U0010FFFF]

(Beside the point really, but [\x80-\U0010FFFF] is an empty set since that \x80 
is a raw byte with code 0x3fff80.
Presumably you meant \u0080-\U0010FFFF.)

> So putting it first is better. It does not conflict with putting `]'
> first;
> 
> []-...]
> 
> is unambiguous.

[]-x] means the range ] to x, not the set of ], - and x.





reply via email to

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