[vim/vim] runtime(vim): Fix heredoc triggering misidentifcation of Vim9 script (PR #20654)

2 views
Skip to first unread message

dkearns

unread,
1:21 PM (4 hours ago) 1:21 PM
to vim/vim, Subscribed

The following let-heredoc can cause legacy scripts to be misidentified as Vim9 script if it appears early in the file. Only match :vim9script at the start of a line where it sensibly belongs.

let x =<< trim LINES
  vim9script
  ...
LINES

Fixes #20647 (reported by Maxim Kim).


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

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

Commit Summary

  • 12be575 runtime(vim): Fix heredoc triggering misidentifcation of Vim9 script

File Changes

(3 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/20654@github.com>

Reply all
Reply to author
Forward
0 new messages