-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vim patch v8.2.0578 appears to add more strict HEREDOC syntax #1347
Labels
T: bug
Something isn't working
Comments
This may help explain the original change to the HEREDOC "label/tag" handling: vim/vim#4705 |
I can confirm this. This change is sufficient to fix it. diff --git a/plugin/black.vim b/plugin/black.vim
index 8106ea1..066f3fd 100644
--- a/plugin/black.vim
+++ b/plugin/black.vim
@@ -45,7 +45,7 @@ if !exists("g:black_skip_string_normalization")
let g:black_skip_string_normalization = 0
endif
-python3 << endpython3
+python3 << Endpython3
import collections
import os
import sys
@@ -191,7 +191,7 @@ def BlackUpgrade():
def BlackVersion():
print(f'Black, version {black.__version__} on Python {sys.version}.')
-endpython3
+Endpython3
command! Black :py3 Black()
command! BlackUpgrade :py3 BlackUpgrade() |
Thanks for the diagnosis! Please submit a PR with this change. |
PR created #1348 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After building vim to include patch 8.2.0578 (https://github.com/vim/vim/releases/tag/v8.2.0578), black.vim now causes the following error to show at vim startup:
I'm not 100% sure of the vim changes, but if the "endpython3" HEREDOC tag in black.vim is changed to Endpython3 (note the uppercase first letter), then black.vim is processed without error in vim.
The text was updated successfully, but these errors were encountered: