mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
runtime(vim): Update base syntax, match :prompt command args
closes: #18732 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
89f0a3a574
commit
4f19d2768a
20
runtime/syntax/testdir/dumps/vim_ex_prompt_commands_00.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_prompt_commands_00.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
>"+0#0000e05#ffffff0| |V|i|m| |:|p|r|o|m|p|t|{|f|i|n|d|,|r|e|p|l|}| |c|o|m@1|a|n|d|s| +0#0000000&@41
|
||||
@75
|
||||
@75
|
||||
|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|f|o@1| @60
|
||||
|p+0#af5f00255&|r|o|m|p|t|r|e|p|l| +0#0000000&|f|o@1| @60
|
||||
@75
|
||||
|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|a| @62
|
||||
@6|\+0#e000e06&| +0#0000000&|r|e|a|l@1|y| @60
|
||||
@6|\+0#e000e06&| +0#0000000&|l|o|n|g| @62
|
||||
@6|\+0#e000e06&| +0#0000000&|s|e|a|r|c|h| @60
|
||||
@6|\+0#e000e06&| +0#0000000&|s|t|r|i|n|g| @60
|
||||
|p+0#af5f00255&|r|o|m|p|t|r|e|p|l| +0#0000000&|a| @62
|
||||
@6|\+0#e000e06&| +0#0000000&|r|e|a|l@1|y| @60
|
||||
@6|\+0#e000e06&| +0#0000000&|l|o|n|g| @62
|
||||
@6|\+0#e000e06&| +0#0000000&|s|e|a|r|c|h| @60
|
||||
@6|\+0#e000e06&| +0#0000000&|s|t|r|i|n|g| @60
|
||||
@75
|
||||
@75
|
||||
|"+0#0000e05&| |n|o| |t|a|i|l| |c|o|m@1|e|n|t| |o|r| |t|r|a|i|l|i|n|g| |b|a|r| +0#0000000&@41
|
||||
@57|1|,|1| @10|T|o|p|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_prompt_commands_01.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_prompt_commands_01.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@5|\+0#e000e06&| +0#0000000&|l|o|n|g| @62
|
||||
@6|\+0#e000e06&| +0#0000000&|s|e|a|r|c|h| @60
|
||||
@6|\+0#e000e06&| +0#0000000&|s|t|r|i|n|g| @60
|
||||
@75
|
||||
@75
|
||||
>"+0#0000e05&| |n|o| |t|a|i|l| |c|o|m@1|e|n|t| |o|r| |t|r|a|i|l|i|n|g| |b|a|r| +0#0000000&@41
|
||||
@75
|
||||
|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|f|o@1| |"| |m|o|r|e| |s|e|a|r|c|h| |s|t|r|i|n|g| @39
|
||||
|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|f|o@1| ||| |m|o|r|e| |s|e|a|r|c|h| |s|t|r|i|n|g| @39
|
||||
@75
|
||||
@75
|
||||
|d+0#af5f00255&|e|f| +0#0000000&|V|i|m|9|C|o|n|t|e|x|t|(+0#e000e06&|)| +0#0000000&@57
|
||||
@2|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|f|o@1| @58
|
||||
@2|p+0#af5f00255&|r|o|m|p|t|r|e|p|l| +0#0000000&|f|o@1| @58
|
||||
@75
|
||||
@2|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|a| @60
|
||||
@8|\+0#e000e06&| +0#0000000&|r|e|a|l@1|y| @58
|
||||
@8|\+0#e000e06&| +0#0000000&|l|o|n|g| @60
|
||||
@8|\+0#e000e06&| +0#0000000&|s|e|a|r|c|h| @58
|
||||
@57|1|9|,|1| @9|4|8|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_prompt_commands_02.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_prompt_commands_02.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@7|\+0#e000e06&| +0#0000000&|s|e|a|r|c|h| @58
|
||||
@8|\+0#e000e06&| +0#0000000&|s|t|r|i|n|g| @58
|
||||
@2|p+0#af5f00255&|r|o|m|p|t|r|e|p|l| +0#0000000&|a| @60
|
||||
@8|\+0#e000e06&| +0#0000000&|r|e|a|l@1|y| @58
|
||||
@8|\+0#e000e06&| +0#0000000&|l|o|n|g| @60
|
||||
@8>\+0#e000e06&| +0#0000000&|s|e|a|r|c|h| @58
|
||||
@8|\+0#e000e06&| +0#0000000&|s|t|r|i|n|g| @58
|
||||
@75
|
||||
@75
|
||||
@2|#+0#0000e05&| |n|o| |t|a|i|l| |c|o|m@1|e|n|t| |o|r| |t|r|a|i|l|i|n|g| |b|a|r| +0#0000000&@39
|
||||
@75
|
||||
@2|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|f|o@1| |#| |m|o|r|e| |s|e|a|r|c|h| |s|t|r|i|n|g| @37
|
||||
@2|p+0#af5f00255&|r|o|m|p|t|f|i|n|d| +0#0000000&|f|o@1| ||| |m|o|r|e| |s|e|a|r|c|h| |s|t|r|i|n|g| @37
|
||||
|e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68
|
||||
@75
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
| +0#0000000&@56|3|7|,|2|-|9| @7|B|o|t|
|
||||
46
runtime/syntax/testdir/input/vim_ex_prompt_commands.vim
Normal file
46
runtime/syntax/testdir/input/vim_ex_prompt_commands.vim
Normal file
@@ -0,0 +1,46 @@
|
||||
" Vim :prompt{find,repl} commands
|
||||
|
||||
|
||||
promptfind foo
|
||||
promptrepl foo
|
||||
|
||||
promptfind a
|
||||
\ really
|
||||
\ long
|
||||
\ search
|
||||
\ string
|
||||
promptrepl a
|
||||
\ really
|
||||
\ long
|
||||
\ search
|
||||
\ string
|
||||
|
||||
|
||||
" no tail comment or trailing bar
|
||||
|
||||
promptfind foo " more search string
|
||||
promptfind foo | more search string
|
||||
|
||||
|
||||
def Vim9Context()
|
||||
promptfind foo
|
||||
promptrepl foo
|
||||
|
||||
promptfind a
|
||||
\ really
|
||||
\ long
|
||||
\ search
|
||||
\ string
|
||||
promptrepl a
|
||||
\ really
|
||||
\ long
|
||||
\ search
|
||||
\ string
|
||||
|
||||
|
||||
# no tail comment or trailing bar
|
||||
|
||||
promptfind foo # more search string
|
||||
promptfind foo | more search string
|
||||
enddef
|
||||
|
||||
Reference in New Issue
Block a user