diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-12 08:26:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 08:26:56 +0800 |
commit | b33130244278d28fa8372c35c68fe6d26dd1fefa (patch) | |
tree | 0e92cfeec67bb88497d229a85e2b08dbe626d101 /runtime/syntax/vim.vim | |
parent | 145d9ed0fcedd7bc61a2881a7c8f2d21ed52939f (diff) | |
download | rneovim-b33130244278d28fa8372c35c68fe6d26dd1fefa.tar.gz rneovim-b33130244278d28fa8372c35c68fe6d26dd1fefa.tar.bz2 rneovim-b33130244278d28fa8372c35c68fe6d26dd1fefa.zip |
vim-patch:9358b8d99349 (#25998)
runtime(vim): Improve :let-heredoc syntax highlighting (vim/vim#12923)
"trim" and "eval" are allowed in any order and whitespace is not
required after "=<<".
https://github.com/vim/vim/commit/9358b8d99349818666718f513655c2bf53d43754
Co-authored-by: dkearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/syntax/vim.vim')
-rw-r--r-- | runtime/syntax/vim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index c44a32119b..fcd50bccd2 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -368,7 +368,7 @@ syn match vimSetMod contained "&vim\=\|[!&?<]\|all&" " Let: {{{2 " === syn keyword vimLet let unl[et] skipwhite nextgroup=vimVar,vimFuncVar,vimLetHereDoc -VimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s\+\%(trim\s\+\)\=\%(eval\s\+\)\=\s*\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1\s*$' +VimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s*\%(trim\s\+\%(eval\s\+\)\=\|eval\s\+\%(trim\s\+\)\=\)\=\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1\s*$' " Abbreviations: {{{2 " ============= |