:help [:upper:].uppercase letters (all letters when 'ignorecase' is used).:set ignorecase.:echo 'a' =~ '[[:upper:]]'.The above steps can be repeated for [:lower:], substituting 'A' for 'a' in step 4.
I expected the documentation not to say that these character classes match all letters when ignorecase is used. This would make it consistent with :help /ignorecase, which states Note that 'ignorecase', "\c" and "\C" are not used for the character classes., as well as with the actual behavior of the character classes in practice.
9.1.2101
Operating system: Debian 13
Terminal: rxvt-unicode v9.31
Value of $TERM: tmux-256color
Shell: GNU bash, version 5.2.37(1)-release
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
That's is however correct behavior when matching text in the buffer using the backtracking regexp engine (e.g. after :set regexpengine=1), but when using an expression operator =~ it is always ignored. Strange
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Interesting, for me, after :set regexpengine=1, the behavior of =~ updates too. :set ic re=1 | echo 'a' =~ '[[:upper:]]' prints 1.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Yeah, I am unsure if we should just document this inconsistency and how. Any idea for a doc patch?
I had a quick look yesterday at the backtracking code, but did not find where this ignorecase setting was applied.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()