aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2017-10-07 20:32:37 +0800
committerJustin M. Keyes <justinkz@gmail.com>2017-10-07 14:32:37 +0200
commit9ad7529f705c883e13fba9a014696fb37318145f (patch)
tree42c48bb85cd90f069819e810f80935e23e904c9f /src/nvim/testdir
parenta4019bc9f6478941fe75879e81d37bd628bc94c5 (diff)
downloadrneovim-9ad7529f705c883e13fba9a014696fb37318145f.tar.gz
rneovim-9ad7529f705c883e13fba9a014696fb37318145f.tar.bz2
rneovim-9ad7529f705c883e13fba9a014696fb37318145f.zip
vim-patch:8.0.0157 (#7362)
Problem: No command line completion for ":syntax spell" and ":syntax sync". Solution: Implement the completion. (Dominique Pelle) https://github.com/vim/vim/commit/2d02839050a2557bf36dab37ccd9f92168a757d1
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_syntax.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_syntax.vim b/src/nvim/testdir/test_syntax.vim
index af2cbbfe8e..05e930d984 100644
--- a/src/nvim/testdir/test_syntax.vim
+++ b/src/nvim/testdir/test_syntax.vim
@@ -76,3 +76,11 @@ func Test_syntax_after_reload()
call assert_true(exists('g:gotit'))
call delete('Xsomefile')
endfunc
+
+func Test_syntax_completion()
+ 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', @:)
+endfunc