comparison src/testdir/test_syntax.vim @ 29890:80929331a836 v9.0.0283

patch 9.0.0283: cannot complete "syn list @cluster" Commit: https://github.com/vim/vim/commit/af9a6002e0761012cb7108cbfa179a880d3cb49b Author: bfredl <bjorn.linse@gmail.com> Date: Fri Aug 26 21:58:31 2022 +0100 patch 9.0.0283: cannot complete "syn list @cluster" Problem: Cannot complete "syn list @cluster". Solution: Recognize and handle "list @". (Bj?rn Linse, closes https://github.com/vim/vim/issues/10990)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 23:00:03 +0200
parents f27ec19f2034
children ae10b91ac6b3
comparison
equal deleted inserted replaced
29889:2cdac217edbd 29890:80929331a836
199 call feedkeys(":syn list \<C-A>\<C-B>\"\<CR>", 'tx') 199 call feedkeys(":syn list \<C-A>\<C-B>\"\<CR>", 'tx')
200 call assert_match('^"syn list Boolean Character ', @:) 200 call assert_match('^"syn list Boolean Character ', @:)
201 201
202 call feedkeys(":syn match \<C-A>\<C-B>\"\<CR>", 'tx') 202 call feedkeys(":syn match \<C-A>\<C-B>\"\<CR>", 'tx')
203 call assert_match('^"syn match Boolean Character ', @:) 203 call assert_match('^"syn match Boolean Character ', @:)
204
205 syn cluster Aax contains=Aap
206 call feedkeys(":syn list @A\<C-A>\<C-B>\"\<CR>", 'tx')
207 call assert_match('^"syn list @Aax', @:)
204 endfunc 208 endfunc
205 209
206 func Test_echohl_completion() 210 func Test_echohl_completion()
207 call feedkeys(":echohl no\<C-A>\<C-B>\"\<CR>", 'tx') 211 call feedkeys(":echohl no\<C-A>\<C-B>\"\<CR>", 'tx')
208 call assert_equal('"echohl NonText Normal none', @:) 212 call assert_equal('"echohl NonText Normal none', @:)