diff src/testdir/test_syntax.vim @ 10534:1c6db35e3527 v8.0.0157

commit https://github.com/vim/vim/commit/2d02839050a2557bf36dab37ccd9f92168a757d1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 8 18:28:22 2017 +0100 patch 8.0.0157: no completion for :syntax spell and :syntax sync Problem: No command line completion for ":syntax spell" and ":syntax sync". Solution: Implement the completion. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Sun, 08 Jan 2017 18:30:03 +0100
parents ea1beefcd664
children 4ee16e5e2e26
line wrap: on
line diff
--- a/src/testdir/test_syntax.vim
+++ b/src/testdir/test_syntax.vim
@@ -150,6 +150,12 @@ func Test_syntax_completion()
   call feedkeys(":syn case \<C-A>\<C-B>\"\<CR>", 'tx')
   call assert_equal('"syn case ignore match', @:)
 
+  call feedkeys(":syn spell \<C-A>\<C-B>\"\<CR>", 'tx')
+  call assert_equal('"syn spell default notoplevel toplevel', @:)
+
+  call feedkeys(":syn sync \<C-A>\<C-B>\"\<CR>", 'tx')
+  call assert_equal('"syn sync ccomment clear fromstart linebreaks= linecont lines= match maxlines= minlines= region', @:)
+
   call feedkeys(":syn list \<C-A>\<C-B>\"\<CR>", 'tx')
   call assert_match('^"syn list Boolean Character ', @:)