commit 69ef85a53307cecac0e5a1b67243dbc5fc5befc1
parent cfb4d3d2f2e9f17e2e7c642c82d23b3398c39ef8
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 23 Jun 2025 07:22:40 +0800
vim-patch:99b9847: runtime(vim): Update base-syntax, fix Vim9 :import expression comment handling
The required space in Vim9 continuation comments (#\ comment) was
accidentally removed in commit 6acca4b as trailing whitespace.
closes: vim/vim#17573
https://github.com/vim/vim/commit/99b9847bd8c9146b2ccc3c1403752755650ee4c6
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
@@ -324,7 +324,7 @@ if s:vim9script
\\|
\\%(^\s*#.*\)\@<=$
\\|
- \\n\s*\\\|\n\s*#\\
+ \\n\s*\%(\\\|#\\ \)
\+
\ matchgroup=vimCommand
\ end="\s\+\zsas\ze\s\+\h"
@@ -336,7 +336,7 @@ if s:vim9script
else
syn region vimImportFilename contained
\ start="\S"
- \ skip=+\n\s*\\\|\n\s*"\\ +
+ \ skip=+\n\s*\%(\\\|"\\ \)+
\ matchgroup=vimCommand
\ end="\s\+\zsas\ze\s\+\h"
\ matchgroup=NONE