runtime(vim): Update base-syntax, improve :import highlighting
- Match "autoload" as a keyword in :import commands. - Match an expression argument for the filename. closes: #15375 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
0816f17e9a
commit
7b5550fac7
20
runtime/syntax/testdir/dumps/vim9_ex_import_00.dump
Normal file
20
runtime/syntax/testdir/dumps/vim9_ex_import_00.dump
Normal file
@ -0,0 +1,20 @@
|
||||
>v+0#af5f00255#ffffff0|i|m|9|s|c|r|i|p|t| +0#0000000&@64
|
||||
|#+0#0000e05&| |V|i|m|9| |:|i|m|p|o|r|t| |c|o|m@1|a|n|d| +0#0000000&@52
|
||||
|#+0#0000e05&| |V|I|M|_|T|E|S|T|_|S|E|T|U|P| |h|i| |l|i|n|k| |v|i|m|I|m|p|o|r|t|N|a|m|e| |T|o|d|o| +0#0000000&@31
|
||||
@75
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@58
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@39
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@61
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&@63
|
||||
@2|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@51
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@57|1|,|1| @10|T|o|p|
|
||||
20
runtime/syntax/testdir/dumps/vim9_ex_import_01.dump
Normal file
20
runtime/syntax/testdir/dumps/vim9_ex_import_01.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@1|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@51
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2>"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@53
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|r| +0#0000000#ffffff0@51
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@32
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@61
|
||||
@57|1|9|,|3| @9|1|2|%|
|
||||
20
runtime/syntax/testdir/dumps/vim9_ex_import_02.dump
Normal file
20
runtime/syntax/testdir/dumps/vim9_ex_import_02.dump
Normal file
@ -0,0 +1,20 @@
|
||||
|i+0#af5f00255#ffffff0|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@61
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
>i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&@63
|
||||
@2|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@51
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@53
|
||||
@57|3|7|,|1| @9|3|0|%|
|
||||
20
runtime/syntax/testdir/dumps/vim9_ex_import_03.dump
Normal file
20
runtime/syntax/testdir/dumps/vim9_ex_import_03.dump
Normal file
@ -0,0 +1,20 @@
|
||||
|i+0#af5f00255#ffffff0|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@53
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@2>#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
|e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&||| |i+0#af5f00255&|m|p|o|r|t| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@45
|
||||
@75
|
||||
@75
|
||||
|#+0#0000e05&| |a|u|t|o|l|o|a|d| +0#0000000&@64
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@49
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@30
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@52
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@57|5@1|,|3| @9|4|8|%|
|
||||
20
runtime/syntax/testdir/dumps/vim9_ex_import_04.dump
Normal file
20
runtime/syntax/testdir/dumps/vim9_ex_import_04.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@1|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&@54
|
||||
@2|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
> @74
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@42
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@44
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|r| +0#0000000#ffffff0@42
|
||||
@57|7|3|,|0|-|1| @7|6@1|%|
|
||||
20
runtime/syntax/testdir/dumps/vim9_ex_import_05.dump
Normal file
20
runtime/syntax/testdir/dumps/vim9_ex_import_05.dump
Normal file
@ -0,0 +1,20 @@
|
||||
|i+0#af5f00255#ffffff0|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|r| +0#0000000#ffffff0@42
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@23
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@52
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2>"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&@54
|
||||
@2|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@42
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@63
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@57|9|1|,|3| @9|8|4|%|
|
||||
20
runtime/syntax/testdir/dumps/vim9_ex_import_06.dump
Normal file
20
runtime/syntax/testdir/dumps/vim9_ex_import_06.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@1|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@44
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| | +0#0000000&@62
|
||||
@2>?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@61
|
||||
@2|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@63
|
||||
@2|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@66
|
||||
@75
|
||||
@75
|
||||
|#+0#0000e05&| |"+0#e000002&|a|s|"| +0#0000e05&|k|e|y|w|o|r|d| |i|n| |e|x|p|r| +0#0000000&@52
|
||||
@75
|
||||
|v+0#af5f00255&|a|r| +0#0000000&|a+0#00e0e07&|s| +0#0000000&|=+0#af5f00255&| +0#0000000&|"+0#e000002&|m|o|d|u|l|e|s|/|"| +0#0000000&@55
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|t+0#e000002&|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|a+0#00e0e07&|s| +0#0000000&|.+0#af5f00255&@1| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|a+0#00e0e07&|s| +0#0000000&|.+0#af5f00255&@1| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|o+0#0000001#ffff4012|t|h|e|r| +0#0000000#ffffff0@18
|
||||
@75
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
| +0#0000000&@56|1|0|9|,|3| @8|B|o|t|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_import_00.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_import_00.dump
Normal file
@ -0,0 +1,20 @@
|
||||
>"+0#0000e05#ffffff0| |V|i|m| |:|i|m|p|o|r|t| |c|o|m@1|a|n|d| +0#0000000&@53
|
||||
|"+0#0000e05&| |V|I|M|_|T|E|S|T|_|S|E|T|U|P| |h|i| |l|i|n|k| |v|i|m|I|m|p|o|r|t|N|a|m|e| |T|o|d|o| +0#0000000&@31
|
||||
@75
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@58
|
||||
|i+0#af5f00255&|m|p|o|r| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@38
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@59
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@61
|
||||
@6|\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@59
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@57|1|,|1| @10|T|o|p|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_import_01.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_import_01.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@5|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@59
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6>"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@61
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| | +0#0000000&@57
|
||||
@6|\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|r| +0#0000000#ffffff0@51
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@30
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@59
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@57|1|9|,|7| @9|1|3|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_import_02.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_import_02.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@5|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@6|\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@61
|
||||
@6>\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@59
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@61
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| | +0#0000000&@57
|
||||
@57|3|7|,|7| @9|3|1|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_import_03.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_import_03.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@5|"+0#0000e05&|\| |c|o|m@1|e|n|t| | +0#0000000&@57
|
||||
@6|\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6>\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
|e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&||| |i+0#af5f00255&|m|p|o|r|t| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@45
|
||||
@75
|
||||
@75
|
||||
|"+0#0000e05&| |a|u|t|o|l|o|a|d| +0#0000000&@64
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@49
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@28
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@50
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@75
|
||||
@57|5@1|,|7| @9|4|9|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_import_04.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_import_04.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@74
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@52
|
||||
@6|\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@75
|
||||
>i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@50
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
| +0#e000002&@5|\+0#e000e06&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@56
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@52
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| | +0#0000000&@57
|
||||
@6|\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|r| +0#0000000#ffffff0@42
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@21
|
||||
@57|7|3|,|1| @9|6|7|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_import_05.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_import_05.dump
Normal file
@ -0,0 +1,20 @@
|
||||
|i+0#af5f00255#ffffff0|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@21
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@50
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@6>\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@52
|
||||
@6|\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@6|\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&@50
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| +0#0000000&|c+0#0000e05&|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@57
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@57|9|1|,|7| @9|8|5|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_import_06.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_import_06.dump
Normal file
@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@5|\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|a+0#e000e06&|u|t|o|l|o|a|d| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&@52
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| | +0#0000000&@57
|
||||
@6|\+0#e000e06&| +0#0000000&|?+0#af5f00255&| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&@55
|
||||
@6>"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|:+0#af5f00255&| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&@55
|
||||
@6|"+0#0000e05&|\| |c|o|m@1|e|n|t| +0#0000000&@58
|
||||
@6|\+0#e000e06&| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|b+0#0000001#ffff4012|a|z| +0#0000000#ffffff0@60
|
||||
@75
|
||||
@75
|
||||
|"+0#0000e05&| |"+0#e000002&|a|s|"| +0#0000e05&|k|e|y|w|o|r|d| |i|n| |e|x|p|r| +0#0000000&@52
|
||||
@75
|
||||
|l+0#af5f00255&|e|t| +0#0000000&|a+0#00e0e07&|s| +0#0000000&|=+0#af5f00255&| +0#0000000&|"+0#e000002&|m|o|d|u|l|e|s|/|"| +0#0000000&@55
|
||||
|i+0#af5f00255&|m|p|o|r|t| +0#0000000&|v+0#00e0e07&|:|t|r|u|e| +0#0000000&|?+0#af5f00255&| +0#0000000&|a+0#00e0e07&|s| +0#0000000&|.+0#af5f00255&@1| +0#0000000&|"+0#e000002&|f|o@1|.|v|i|m|"| +0#0000000&|:+0#af5f00255&| +0#0000000&|a+0#00e0e07&|s| +0#0000000&|.+0#af5f00255&@1| +0#0000000&|"+0#e000002&|b|a|r|.|v|i|m|"| +0#0000000&|a+0#af5f00255&|s| +0#0000000&|o+0#0000001#ffff4012|t|h|e|r| +0#0000000#ffffff0@16
|
||||
@75
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
| +0#0000000&@56|1|0|9|,|7| @8|B|o|t|
|
||||
1
runtime/syntax/testdir/input/setup/vim9_ex_import.vim
Normal file
1
runtime/syntax/testdir/input/setup/vim9_ex_import.vim
Normal file
@ -0,0 +1 @@
|
||||
hi link vimVar Identifier
|
||||
1
runtime/syntax/testdir/input/setup/vim_ex_import.vim
Normal file
1
runtime/syntax/testdir/input/setup/vim_ex_import.vim
Normal file
@ -0,0 +1 @@
|
||||
hi link vimVar Identifier
|
||||
120
runtime/syntax/testdir/input/vim9_ex_import.vim
Normal file
120
runtime/syntax/testdir/input/vim9_ex_import.vim
Normal file
@ -0,0 +1,120 @@
|
||||
vim9script
|
||||
# Vim9 :import command
|
||||
# VIM_TEST_SETUP hi link vimImportName Todo
|
||||
|
||||
|
||||
import "foo.vim"
|
||||
import true ? "foo.vim" : "bar.vim"
|
||||
|
||||
import true ?
|
||||
"foo.vim" :
|
||||
"bar.vim"
|
||||
|
||||
import true
|
||||
? "foo.vim"
|
||||
: "bar.vim"
|
||||
|
||||
import true ? # comment
|
||||
# comment
|
||||
"foo.vim" :
|
||||
# comment
|
||||
"bar.vim"
|
||||
|
||||
import true # comment
|
||||
# comment
|
||||
? "foo.vim"
|
||||
# comment
|
||||
: "bar.vim"
|
||||
|
||||
import "foo.vim" as bar
|
||||
import true ? "foo.vim" : "bar.vim" as baz
|
||||
|
||||
import true ?
|
||||
"foo.vim" :
|
||||
"bar.vim"
|
||||
as baz
|
||||
|
||||
import true
|
||||
? "foo.vim"
|
||||
: "bar.vim"
|
||||
as baz
|
||||
|
||||
import true ? # comment
|
||||
# comment
|
||||
"foo.vim" :
|
||||
# comment
|
||||
"bar.vim"
|
||||
# comment
|
||||
as baz
|
||||
|
||||
import true # comment
|
||||
# comment
|
||||
? "foo.vim"
|
||||
# comment
|
||||
: "bar.vim"
|
||||
# comment
|
||||
as baz
|
||||
|
||||
echo "Foo" | import "foo.vim"
|
||||
|
||||
|
||||
# autoload
|
||||
|
||||
import autoload "foo.vim"
|
||||
import autoload true ? "foo.vim" : "bar.vim"
|
||||
|
||||
import autoload true ?
|
||||
"foo.vim" :
|
||||
"bar.vim"
|
||||
|
||||
import autoload true
|
||||
? "foo.vim"
|
||||
: "bar.vim"
|
||||
|
||||
import autoload true ? # comment
|
||||
# comment
|
||||
"foo.vim" :
|
||||
# comment
|
||||
"bar.vim"
|
||||
|
||||
import autoload true # comment
|
||||
# comment
|
||||
? "foo.vim"
|
||||
# comment
|
||||
: "bar.vim"
|
||||
|
||||
import autoload "foo.vim" as bar
|
||||
import autoload true ? "foo.vim" : "bar.vim" as baz
|
||||
|
||||
import autoload true ?
|
||||
"foo.vim" :
|
||||
"bar.vim"
|
||||
as baz
|
||||
|
||||
import autoload true
|
||||
? "foo.vim"
|
||||
: "bar.vim"
|
||||
as baz
|
||||
|
||||
import autoload true ? # comment
|
||||
# comment
|
||||
"foo.vim" :
|
||||
# comment
|
||||
"bar.vim"
|
||||
# comment
|
||||
as baz
|
||||
|
||||
import autoload true # comment
|
||||
# comment
|
||||
? "foo.vim"
|
||||
# comment
|
||||
: "bar.vim"
|
||||
# comment
|
||||
as baz
|
||||
|
||||
|
||||
# "as" keyword in expr
|
||||
|
||||
var as = "modules/"
|
||||
import true ? as .. "foo.vim" : as .. "bar.vim" as other
|
||||
|
||||
119
runtime/syntax/testdir/input/vim_ex_import.vim
Normal file
119
runtime/syntax/testdir/input/vim_ex_import.vim
Normal file
@ -0,0 +1,119 @@
|
||||
" Vim :import command
|
||||
" VIM_TEST_SETUP hi link vimImportName Todo
|
||||
|
||||
|
||||
import "foo.vim"
|
||||
impor v:true ? "foo.vim" : "bar.vim"
|
||||
|
||||
import v:true ?
|
||||
\ "foo.vim" :
|
||||
\ "bar.vim"
|
||||
|
||||
import v:true
|
||||
\ ? "foo.vim"
|
||||
\ : "bar.vim"
|
||||
|
||||
import v:true ?
|
||||
"\ comment
|
||||
\ "foo.vim" :
|
||||
"\ comment
|
||||
\ "bar.vim"
|
||||
|
||||
import v:true
|
||||
"\ comment
|
||||
\ ? "foo.vim"
|
||||
"\ comment
|
||||
\ : "bar.vim"
|
||||
|
||||
import "foo.vim" as bar
|
||||
import v:true ? "foo.vim" : "bar.vim" as baz
|
||||
|
||||
import v:true ?
|
||||
\ "foo.vim" :
|
||||
\ "bar.vim"
|
||||
\ as baz
|
||||
|
||||
import v:true
|
||||
\ ? "foo.vim"
|
||||
\ : "bar.vim"
|
||||
\ as baz
|
||||
|
||||
import v:true ?
|
||||
"\ comment
|
||||
\ "foo.vim" :
|
||||
"\ comment
|
||||
\ "bar.vim"
|
||||
"\ comment
|
||||
\ as baz
|
||||
|
||||
import v:true
|
||||
"\ comment
|
||||
\ ? "foo.vim"
|
||||
"\ comment
|
||||
\ : "bar.vim"
|
||||
"\ comment
|
||||
\ as baz
|
||||
|
||||
echo "Foo" | import "foo.vim"
|
||||
|
||||
|
||||
" autoload
|
||||
|
||||
import autoload "foo.vim"
|
||||
import autoload v:true ? "foo.vim" : "bar.vim"
|
||||
|
||||
import autoload v:true ?
|
||||
\ "foo.vim" :
|
||||
\ "bar.vim"
|
||||
|
||||
import autoload v:true
|
||||
\ ? "foo.vim"
|
||||
\ : "bar.vim"
|
||||
|
||||
import autoload v:true ?
|
||||
"\ comment
|
||||
\"foo.vim" :
|
||||
"\ comment
|
||||
\ "bar.vim"
|
||||
|
||||
import autoload v:true
|
||||
"\ comment
|
||||
\ ? "foo.vim"
|
||||
"\ comment
|
||||
\ : "bar.vim"
|
||||
|
||||
import autoload "foo.vim" as bar
|
||||
import autoload v:true ? "foo.vim" : "bar.vim" as baz
|
||||
|
||||
import autoload v:true ?
|
||||
\ "foo.vim" :
|
||||
\ "bar.vim"
|
||||
\ as baz
|
||||
|
||||
import autoload v:true
|
||||
\ ? "foo.vim"
|
||||
\ : "bar.vim"
|
||||
\ as baz
|
||||
|
||||
import autoload v:true ?
|
||||
"\ comment
|
||||
\ "foo.vim" :
|
||||
"\ comment
|
||||
\ "bar.vim"
|
||||
"\ comment
|
||||
\ as baz
|
||||
|
||||
import autoload v:true
|
||||
"\ comment
|
||||
\ ? "foo.vim"
|
||||
"\ comment
|
||||
\ : "bar.vim"
|
||||
"\ comment
|
||||
\ as baz
|
||||
|
||||
|
||||
" "as" keyword in expr
|
||||
|
||||
let as = "modules/"
|
||||
import v:true ? as .. "foo.vim" : as .. "bar.vim" as other
|
||||
|
||||
Reference in New Issue
Block a user