Hi,
2017/5/11 Thu 21:52:48 UTC+9 Bram Moolenaar wrote:
> Ken Hamada wrote:
>
> > Hi list, I noticed that E16 occurs with regexp.
> >
> > set re=1
> > echo '' =~# '[\uff-\uf0]'
> > E16: Invalid range
> > echo '' =~# '[\u3000-\u4000]'
> > E16: Invalid range
> >
> > I think this is unintuitive error message because E16 reminds us the range
> > of
> > commands (for example :0buffer). So I suggest two exclusive options:
> >
> > - Add a note that the error can occur with regexp at :h E16.
> > - Change the error message and number.
>
> From the old days a bit of memory was saved by limiting the number of
> error messages. Now that we are more interested in useful errors,
> splitting off specific cases is useful.
>
> > BTW the behaviour *Limit to a range of 256 chars* differs due to the
> > regex engine version.
> > I could not tell the difference until I dived into the source code. I
> > would like some warning to be written regarding this topic around :h
> > /[.
>
> I thought this was mentioned somewhere, but can't find it right now.
> Please suggest an improvement.
`:help E769` mentions it:
"[0-9]" matches any decimal digit. Non-ASCII characters can be
used, but the character values must not be more than 256 apart.
Regards,
Ken Takata
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.