aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/messages_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-09-20 06:59:46 +0800
committerGitHub <noreply@github.com>2024-09-20 06:59:46 +0800
commitf01c764cc6f82399edfa0d47a7bafbf7c95e2747 (patch)
tree6e3d6287d00bf18f8ec2e99b0a7acd03a45e5347 /test/functional/ui/messages_spec.lua
parentadbaaa522550a098e3b8e4efe0909cb3aa6e1d83 (diff)
downloadrneovim-f01c764cc6f82399edfa0d47a7bafbf7c95e2747.tar.gz
rneovim-f01c764cc6f82399edfa0d47a7bafbf7c95e2747.tar.bz2
rneovim-f01c764cc6f82399edfa0d47a7bafbf7c95e2747.zip
vim-patch:35699f1: runtime(vim): Update base-syntax, improve folding function matches (#30427)
- Allow function command modifiers. - Match function bodies starting with empty lines. Command modifiers reported by @Konfekt. fixes vim/vim#15671 closes: vim/vim#15674 https://github.com/vim/vim/commit/35699f17497dcdcfdd747fedaef28f208ac6eb5f Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r--test/functional/ui/messages_spec.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 036b5ceefc..a3e5068e55 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -1165,7 +1165,12 @@ describe('ui/builtin messages', function()
it(':syntax list langGroup output', function()
command('syntax on')
- command('set syntax=vim')
+ exec([[
+ syn match vimComment excludenl +\s"[^\-:.%#=*].*$+lc=1 contains=@vimCommentGroup,vimCommentString
+ syn match vimComment +\<endif\s\+".*$+lc=5 contains=@vimCommentGroup,vimCommentString
+ syn match vimComment +\<else\s\+".*$+lc=4 contains=@vimCommentGroup,vimCommentString
+ hi link vimComment Comment
+ ]])
screen:try_resize(110, 7)
feed(':syntax list vimComment<cr>')
screen:expect([[