runtime(vim): Update base-syntax, improve function definition highlighting (#14203)
Improve function definition highlighting. - Match bang and function modifiers - abort etc. - Only match valid scope modifiers. - Match listing commands. - Don't match ex commands in function names. - Split function syntax groups into :func and :def subgroups. - Match Vim9-script parameter and return types. - Limit legacy-script and Vim9-script comments to :func and :def definitions, respectively. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
		
							
								
								
									
										20
									
								
								runtime/syntax/testdir/dumps/vim_ex_def_04.dump
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								runtime/syntax/testdir/dumps/vim_ex_def_04.dump
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| |e+0#af5f00255#ffffff0|n|d@1|e|f| +0#0000000&@68 | ||||
| @75 | ||||
| |d+0#af5f00255&|e|f| +0#0000000&|f|o@1|#|b|a|r|#|F|o@1|(+0#e000e06&|)|:+0#0000000&| |n+0#00e0003&|u|m|b|e|r| +0#0000000&@49 | ||||
| @2|r+0#af5f00255&|e|t|u|r|n| +0#0000000&|4+0#e000002&|2| +0#0000000&@63 | ||||
| |e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68 | ||||
| > @74 | ||||
| |"+0#0000e05&| |s|a|m|e| |n|a|m|e| |a|s| |a|n| |E|x| |c|o|m@1|a|n|d| +0#0000000&@46 | ||||
| |d+0#af5f00255&|e|f| +0#0000000&|s+0#e000e06&|:|l+0#0000000&|s|(+0#e000e06&|)| +0#0000000&@64 | ||||
| |e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68 | ||||
| @75 | ||||
| @75 | ||||
| |"+0#0000e05&| |r|e|t|u|r|n| |t|y|p|e|s| +0#0000000&@60 | ||||
| @75 | ||||
| |d+0#af5f00255&|e|f| +0#0000000&|F|o@1|(+0#e000e06&|)|:+0#0000000&| |v+0#00e0003&|o|i|d| +0#0000000&@59 | ||||
| |e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68 | ||||
| @75 | ||||
| |d+0#af5f00255&|e|f| +0#0000000&|F|o@1|(+0#e000e06&|)|:+0#0000000&| |v+0#00e0003&|o|i|d| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@49 | ||||
| |e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68 | ||||
| @75 | ||||
| @57|7|3|,|0|-|1| @7|6|3|%|  | ||||
		Reference in New Issue
	
	Block a user