Friday, October 21, 2016

BUG: charclas "isident" missing identifier chars above 255? (was: how to turn off error-highlight of UTF-8 char(s) in perl-function names?)

Paul wrote:
>
> This might help:
>
> Put the cursor on the target character, and do 「:echo
> map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')」. That
> will show you what highlight group it is using. 「:verbose highlight
> <that group>」 will show you where it was defined.
>
Thanks! .. didn't know about that, but it led me to where I thought
the problem was.

On the char w/the error, it's in "perlSubError" which links to "Error".
The other chars are in "perlSubName". The problem looks like it is
the use of "isident", referenced by "\i" and "\I". For syntax, "isident"
refers to "isfname", where it says:

"Multi-byte characters 256 and above are always included, only the
characters up to 255 are specified with this option.
For UTF-8 the characters 0xa0 to 0xff are included as well."

While that is true for "isfname", It appears to leave out all characters
above 255, which makes it "incorrect" for most of the world's alphabetic
characters. Does this look like the problem to anyone else?

Maybe using "\f" & "\F", for "\i" and "\I" would provide a bit better
function
(though still not correct) until \i can support wide characters?

Does "isident" support UTF-8 or will it in the near future?



--
--
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: