mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:1cccdeb: runtime(vim): Update base-syntax, improve Vim9 block start pattern
The opening curly brace must be followed by whitespace, comment or
trailing bar.
closes: vim/vim#17454
1cccdebc0f
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@ -660,7 +660,12 @@ endif
|
||||
|
||||
" Blocks: {{{2
|
||||
" ======
|
||||
Vim9 syn region vim9Block matchgroup=vimSep start="{" end="^\s*\zs}" contains=@vimDefBodyList
|
||||
Vim9 syn region vim9Block
|
||||
\ matchgroup=vimSep
|
||||
\ start="{\ze\s*\%($\|[#|]\)"
|
||||
\ end="^\s*\zs}"
|
||||
\ skipwhite nextgroup=vim9Comment,vimCmdSep
|
||||
\ contains=@vimDefBodyList
|
||||
|
||||
" Keymaps: {{{2
|
||||
" =======
|
||||
|
Reference in New Issue
Block a user