You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran a git bisect and it seems like since commit 8d58bf4 back in 2016 this plugin breaks indentation after a byte string with an unclosed {, such as b'{', resulting in the following indentation:
I have currently no clue why this occurs, but the issue disappears when you remove all the contains= from pythonBytes at L171-L174. Seems to also still work if you only keep contains=@Spell.
Activity
nfnty commentedon Dec 2, 2020
I have currently no clue why this occurs, but the issue disappears when you remove all the
contains=frompythonBytesat L171-L174. Seems to also still work if you only keepcontains=@Spell.Work around indentation bug with b'{' (vim-python#75)
martician1 commentedon Jul 14, 2024
Same problem here with
b'[',without python-syntax:
with python-syntax:
dmitmel commentedon Jun 24, 2026
This bug can be fixed by renaming the groups
python(Raw)Bytestopython(Raw)ByteString(or something else that ends withString). It exists because of this check: https://github.com/vim/vim/blob/cf85d97bafdcc7837a77ab79cc04da189fa3dd0c/runtime/autoload/python.vim#L64.