runtime(vim): Update base-syntax, fix Vim9 :import expression comment handling
Commit: https://github.com/vim/vim/commit/99b9847bd8c9146b2ccc3c1403752755650ee4c6 Author: Doug Kearns <dougkea...@gmail.com> Date: Fri Jun 20 18:59:21 2025 +0200 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: #17573 Signed-off-by: Doug Kearns <dougkea...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/syntax/generator/vim.vim.base b/runtime/syntax/generator/vim.vim.base index dcd57cde5..fabf808e1 100644 --- a/runtime/syntax/generator/vim.vim.base +++ b/runtime/syntax/generator/vim.vim.base @@ -2,7 +2,7 @@ " Language: Vim script " Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com> " Doug Kearns <dougkea...@gmail.com> -" Last Change: 2025 Jun 18 +" Last Change: 2025 Jun 20 " Former Maintainer: Charles E. Campbell " DO NOT CHANGE DIRECTLY. @@ -338,7 +338,7 @@ if s:vim9script \| \%(^\s*#.*\)\@<=$ \| - \n\s*\\| \s*#\ + \n\s*\%(\\|#\ \) \+ \ matchgroup=vimCommand \ end="\s\+\zsas\ze\s\+\h" @@ -350,7 +350,7 @@ if s:vim9script else syn region vimImportFilename contained \ start="\S" - \ skip=+ \s*\\| \s*"\ + + \ skip=+ \s*\%(\\|"\ \)+ \ matchgroup=vimCommand \ end="\s\+\zsas\ze\s\+\h" \ matchgroup=NONE diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 10cefd332..71d7f37ef 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -2,7 +2,7 @@ " Language: Vim script " Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com> " Doug Kearns <dougkea...@gmail.com> -" Last Change: 2025 Jun 18 +" Last Change: 2025 Jun 20 " Former Maintainer: Charles E. Campbell " DO NOT CHANGE DIRECTLY. @@ -391,7 +391,7 @@ if s:vim9script \| \%(^\s*#.*\)\@<=$ \| - \n\s*\\| \s*#\ + \n\s*\%(\\|#\ \) \+ \ matchgroup=vimCommand \ end="\s\+\zsas\ze\s\+\h" @@ -403,7 +403,7 @@ if s:vim9script else syn region vimImportFilename contained \ start="\S" - \ skip=+ \s*\\| \s*"\ + + \ skip=+ \s*\%(\\|"\ \)+ \ matchgroup=vimCommand \ end="\s\+\zsas\ze\s\+\h" \ matchgroup=NONE -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uSf63-00ASQ8-9A%40256bit.org.