mirror of
https://github.com/neovim/neovim.git
synced 2026-07-25 18:22:04 +00:00
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: vim/vim#20647 (reported by Maxim Kim).
closes: vim/vim#20654
9a899af7e8
Co-authored-by: Doug Kearns <dougkearns@gmail.com>