[vim/vim] Vim9: line in :def starting with a string mistaken for heredoc (PR #21377)

5 views
Skip to first unread message

h_east

unread,
Sep 27, 2026, 4:20:22 AM (5 days ago) Sep 27
to vim/vim, Subscribed
Problem:  In a :def function a line that starts with a single-quoted
          string reading like "name =<< END" is taken as the start of
          a heredoc, giving E1145 and swallowing the rest of the file.
Solution: Only skip a range when a colon precedes it, since in Vim9
          script a leading "'" without one starts a string, not a
          mark.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/21377

Commit Summary

  • 1a5d5b0 Vim9: line in :def starting with a string mistaken for heredoc

File Changes

(2 files)

Patch Links:

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21377@github.com>

Christian Brabandt

unread,
Sep 28, 2026, 3:55:47 PM (3 days ago) Sep 28
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21377)

thanks

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21377/c5877374720@github.com>

Reply all
Reply to author
Forward
0 new messages