runtime(vim): Update base-syntax, match :filetype in functions
closes: #17671 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ba11e78f1d
commit
5911ac5023
20
runtime/syntax/testdir/dumps/vim_ex_filetype_00.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_filetype_00.dump
Normal file
@ -0,0 +1,20 @@
|
||||
>"+0#0000e05#ffffff0| |V|i|m| |:|f|i|l|e|t|y|p|e| |c|o|m@1|a|n|d| +0#0000000&@51
|
||||
@75
|
||||
@75
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&@66
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@63
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@62
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|o+0#00e0003&|n| +0#0000000&@56
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@55
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|n| +0#0000000&@56
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@55
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|n| +0#0000000&@49
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@48
|
||||
@75
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&@53
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@56
|
||||
@75
|
||||
|f+0#af5f00255&|u|n|c|t|i|o|n| +0#0000000&|F|o@1|(+0#e000e06&|)| +0#0000000&@60
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&@64
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@61
|
||||
@57|1|,|1| @10|T|o|p|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_filetype_01.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_filetype_01.dump
Normal file
@ -0,0 +1,20 @@
|
||||
|f+0#af5f00255#ffffff0|i|l|e|t|y|p|e| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&@53
|
||||
|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@56
|
||||
@75
|
||||
|f+0#af5f00255&|u|n|c|t|i|o|n| +0#0000000&|F|o@1|(+0#e000e06&|)| +0#0000000&@60
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&@64
|
||||
@2>f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@61
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@60
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|o+0#00e0003&|n| +0#0000000&@54
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@53
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|n| +0#0000000&@54
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@53
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|n| +0#0000000&@47
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|p+0#00e0003&|l|u|g|i|n| +0#0000000&|i+0#00e0003&|n|d|e|n|t| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@46
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&@51
|
||||
@2|f+0#af5f00255&|i|l|e|t|y|p|e| +0#0000000&|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@54
|
||||
|e+0#af5f00255&|n|d|f|u|n|c|t|i|o|n| +0#0000000&@63
|
||||
@75
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
| +0#0000000&@56|1|9|,|3| @9|B|o|t|
|
||||
30
runtime/syntax/testdir/input/vim_ex_filetype.vim
Normal file
30
runtime/syntax/testdir/input/vim_ex_filetype.vim
Normal file
@ -0,0 +1,30 @@
|
||||
" Vim :filetype command
|
||||
|
||||
|
||||
filetype
|
||||
filetype on
|
||||
filetype off
|
||||
filetype plugin on
|
||||
filetype plugin off
|
||||
filetype indent on
|
||||
filetype indent off
|
||||
filetype plugin indent on
|
||||
filetype plugin indent off
|
||||
|
||||
filetype | echo "Foo"
|
||||
filetype " comment
|
||||
|
||||
function Foo()
|
||||
filetype
|
||||
filetype on
|
||||
filetype off
|
||||
filetype plugin on
|
||||
filetype plugin off
|
||||
filetype indent on
|
||||
filetype indent off
|
||||
filetype plugin indent on
|
||||
filetype plugin indent off
|
||||
filetype | echo "Foo"
|
||||
filetype " comment
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user