]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(vim): Update base-syntax, improve :let-heredoc highlighting
authorDoug Kearns <dougkearns@gmail.com>
Fri, 16 Aug 2024 19:07:15 +0000 (21:07 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 16 Aug 2024 19:07:15 +0000 (21:07 +0200)
commitd164f2a521f8e52e587727657fb1c19e9a25f32a
tree36ac03323bacb800bd10e0eb93c852d969341d61
parent8f3f78546f649a76d9149ffdcf13a526aab8d4ed
runtime(vim): Update base-syntax, improve :let-heredoc highlighting

The end marker must appear on line of its own without any trailing
whitespace.

Whitespace is incorrectly allowed before all end markers.  Limiting this
only to heredocs where "trim" was specified, and with the correct
indent, is currently an intractable problem given that contained syntax
groups (in this case :let) cannot be limited to start patterns.

Highlight interpolated expressions when "eval" is specified.

cloess: #15511

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 files changed:
runtime/syntax/generator/vim.vim.base
runtime/syntax/testdir/dumps/vim_ex_function_fold_05.dump
runtime/syntax/testdir/dumps/vim_ex_function_fold_06.dump
runtime/syntax/testdir/dumps/vim_ex_function_fold_07.dump
runtime/syntax/testdir/dumps/vim_ex_let_heredoc_00.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_ex_let_heredoc_01.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_ex_let_heredoc_02.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_ex_let_heredoc_03.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_ex_let_heredoc_04.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_ex_let_heredoc_05.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_ex_let_heredoc_06.dump [new file with mode: 0644]
runtime/syntax/testdir/input/vim_ex_def_fold.vim
runtime/syntax/testdir/input/vim_ex_function_fold.vim
runtime/syntax/testdir/input/vim_ex_let_heredoc.vim [new file with mode: 0644]
runtime/syntax/vim.vim