-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Describe the bug
I am testing a patch from vim/vim#14057, and together with this plugin it breaks the syntax.
To Reproduce
Download the syntax as following:
mkdir "$HOME/.vim/syntax" -p
curl -s https://raw.githubusercontent.com/vim/vim/21c6d8b5b6ef510c9c78b9dfb89a41146599505f/runtime/syntax/python.vim > ~/.vim/syntax/python.vim
And open the test.py file with the following content
VAR = (
"placeholderplaceholderplaceholderplaceholderplaceholderplaceholderplaceholder"
if not bool()
else f"placeholder {bool()}"
)
if not VAR:
logging.debug("placeholder")
_ = VARThe closing bracket in f-string is white for some reason, and the whole following block is a part of string
I tried the following config in $MYVIMRC. It doesn't help
let g:rainbow_conf = {
\ 'python': {
\ 'parentheses_options': 'contains=@NopythonFStringContained',
\ },
\}Expected behavior
F-string and rainbow shouldn't break each other. I am glad it's caught at the development phase. Hopefully, it could be solved before the release.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
