Mercurial > vim
comparison src/testdir/test_options.vim @ 33012:859e539d686b v9.0.1798
patch 9.0.1798: The 'syntax' option has no completion.
Commit: https://github.com/vim/vim/commit/6dfdff3f273dcea29099d81e3eceb871ae089998
Author: Doug Kearns <dougkearns@gmail.com>
Date: Sun Aug 27 18:48:51 2023 +0200
patch 9.0.1798: The 'syntax' option has no completion.
Problem: The 'syntax' option has no completion.
Solution: Add syntax option completion.
closes: #12900
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 27 Aug 2023 19:00:06 +0200 |
parents | 75c283beb74f |
children | 23a824d80de3 |
comparison
equal
deleted
inserted
replaced
33011:a38b40a531e6 | 33012:859e539d686b |
---|---|
372 " Expand values for 'filetype' | 372 " Expand values for 'filetype' |
373 call feedkeys(":set filetype=sshdconfi\<Tab>\<C-B>\"\<CR>", 'xt') | 373 call feedkeys(":set filetype=sshdconfi\<Tab>\<C-B>\"\<CR>", 'xt') |
374 call assert_equal('"set filetype=sshdconfig', @:) | 374 call assert_equal('"set filetype=sshdconfig', @:) |
375 call feedkeys(":set filetype=a\<C-A>\<C-B>\"\<CR>", 'xt') | 375 call feedkeys(":set filetype=a\<C-A>\<C-B>\"\<CR>", 'xt') |
376 call assert_equal('"set filetype=' .. getcompletion('a*', 'filetype')->join(), @:) | 376 call assert_equal('"set filetype=' .. getcompletion('a*', 'filetype')->join(), @:) |
377 | |
378 " Expand values for 'syntax' | |
379 call feedkeys(":set syntax=sshdconfi\<Tab>\<C-B>\"\<CR>", 'xt') | |
380 call assert_equal('"set syntax=sshdconfig', @:) | |
381 call feedkeys(":set syntax=a\<C-A>\<C-B>\"\<CR>", 'xt') | |
382 call assert_equal('"set syntax=' .. getcompletion('a*', 'syntax')->join(), @:) | |
377 endfunc | 383 endfunc |
378 | 384 |
379 func Test_set_option_errors() | 385 func Test_set_option_errors() |
380 call assert_fails('set scroll=-1', 'E49:') | 386 call assert_fails('set scroll=-1', 'E49:') |
381 call assert_fails('set backupcopy=', 'E474:') | 387 call assert_fails('set backupcopy=', 'E474:') |