Open ghost opened 3 years ago
Seems like it's actually caused by another plugin (see vim-python/python-syntax#75). vim-python-pep8-indent alone does not trigger the bug, but the two together make it even worse than just python-syntax alone.
can i try to fix this ? i am a beginner but will try my best. :)
@prayatharth Sure! Although you should know your way around (debugging) Vimscript already I guess.
As for the issue: there is some special handling of syntax attributes already (https://github.com/blueyed/vim-python-pep8-indent/blob/978a5ccd61a69751a7893d01f41561897127d9dc/indent/python.vim#L72) - likely it does not catch the one from python-syntax or something like that.
A byte string like
b'{
with no}
breakspython-indent
, resulting in the following indentation:This does not happen with a regular string (
'{
') or a raw string (r'{'
).