Write a r-string in a python file which include an slash like r"\";
write anything like abc on the right of the r-string. And it will be r"\"abc;
enable the semantic highlight. The text on the right of the r-string (abc in our example) is incorrectly colored the same as the string on the left like this:
Expected behaviour
Because of python's r-string feature, the slash will be a normal character.
But in that highlight sample, the slash be a special character which let the quote on its right side to be a normal character incorrectly.
Version of Vim
9.0.1-1679
Environment
OS: Ubuntu 22.04
Terminal: GNOME Terminal 3.44
$TERM: xterm-256color
shell: GNU bash 5.1.16(1)
Full output of vim --version:
Steps to reproduce
r"\"
;abc
on the right of the r-string. And it will ber"\"abc
;abc
in our example) is incorrectly colored the same as the string on the left like this:Expected behaviour
Because of python's r-string feature, the slash will be a normal character. But in that highlight sample, the slash be a special character which let the quote on its right side to be a normal character incorrectly.
Version of Vim
9.0.1-1679
Environment
OS: Ubuntu 22.04 Terminal: GNOME Terminal 3.44 $TERM: xterm-256color shell: GNU bash 5.1.16(1) Full output of
vim --version
:(It's compiled by myself which only opened support of some language for pluggings)
Logs and stack traces
No response