Tuesday, September 18, 2018

Re: isident and iskeyword treat @ differently

John Little wrote:

> (On Linux with encoding=utf-8) After
>
> :set isident=@ iskeyword=@
>
> \k matches Greek letters, but \i does not. The help states that both have the format of isfname, which says
>
> Multi-byte characters 256 and above are always included, only the
> characters up to 255 are specified with this option.

Well, it uses the format of 'isfname', but not the meaning.

> While I'm at it, \k (and \f) do not match some punctuation, even above 256. For example,
>
> ; U+037E GREEK QUESTION MARK
>
> IMO this is good, perhaps the help should be revised.

Yes, changing the meaning will cause trouble.

Perhaps it's sufficient to mention the meaning for the option. for
'isident':
See 'isfname' for a description of the format of this
option. For '@' only characters up to 255 are used.


For 'iskeyword':
See 'isfname' for a description of the format of this option.
For '@' characters above 255 check the "word" character class.


--
hundred-and-one symptoms of being an internet addict:
83. Batteries in the TV remote now last for months.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment