Skip to content
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

Update Marker syntax for vim #32

Merged
merged 1 commit into from
May 11, 2020

Conversation

mattjmorrison
Copy link
Contributor

Apparently in vim 8.2 (apparently) the heredoc syntax requires that the markers cannot be lower case and will result in an error like this:

Error detected while processing function vim_python_test_runner#RunDesiredTests:
line 1:
E221: Marker cannot start with lower case letter
File "", line 1
<< endPython
^
SyntaxError: invalid syntax
line 2:
E1042: import/export can only be used in vim9script
line 3:
E492: Not an editor command: from vim_python_test_runner import *
line 5:
E128: Function name must start with a capital or "s:": get_proper_command(desired_command, current_directory):
line 6:
E492: Not an editor command: current_line_index = vim.current.window.cursor[0]
line 7:
E492: Not an editor command: FUNCTIONS = {
line 21:
E492: Not an editor command: }
line 22:
E121: Undefined variable: FUNCTIONS

Apparently in vim 8.2 (apparently) the heredoc syntax requires that the markers cannot be lower case and will result in an error like this:

Error detected while processing function vim_python_test_runner#RunDesiredTests:
line    1:
E221: Marker cannot start with lower case letter
  File "<string>", line 1
    << endPython
     ^
SyntaxError: invalid syntax
line    2:
E1042: import/export can only be used in vim9script
line    3:
E492: Not an editor command: from vim_python_test_runner import *
line    5:
E128: Function name must start with a capital or "s:": get_proper_command(desired_command, current_directory):
line    6:
E492: Not an editor command:     current_line_index = vim.current.window.cursor[0]
line    7:
E492: Not an editor command:     FUNCTIONS = {
line   21:
E492: Not an editor command:     }
line   22:
E121: Undefined variable: FUNCTIONS
@JarrodCTaylor JarrodCTaylor merged commit 64acd4b into JarrodCTaylor:master May 11, 2020
@mattjmorrison
Copy link
Contributor Author

mattjmorrison commented May 11, 2020

That, ladies, gentlemen, and non gender specific formal acknowledgement of person hood THIS is exactly the kind of speedy open source stewardship that this world needs in more ample supply. Thank you very kindly @JarrodCTaylor

@mattjmorrison mattjmorrison deleted the patch-2 branch May 11, 2020 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants