annotate runtime/syntax/testdir/dumps/vim_keymap_99.dump @ 34870:3f9703c1bbea

runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104) Commit: https://github.com/vim/vim/commit/04e5363b823827f144409df011376d00ea6df750 Author: dkearns <dougkearns@gmail.com> Date: Thu Apr 11 06:18:37 2024 +1000 runtime(vim): Improve Vim9 and legacy-script comment highlighting (https://github.com/vim/vim/issues/13104) This is a first-pass attempt to limit matching of Vim9 and legacy-script comments to the appropriate syntactic contexts. Vim9-script comments are highlighted at top level in a Vim9-script file, in all :def functions, and in all :autocmd and :commmand command blocks. Legacy-script comments are highlighted at top level in a legacy script file, in all :func functions and in the Vim9-script preamble before the :vim9script marker command. Fixes #13047, #11307 and #9587. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 10 Apr 2024 22:30:04 +0200
parents 4cdbc09512f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34870
3f9703c1bbea runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)
Christian Brabandt <cb@256bit.org>
parents: 33893
diff changeset
1 | +0&#ffffff0@74
33800
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 |"+0#0000e05&| |S|p|e|c|i|a|l| |n|o|t|a|t|i|o|n| @56
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 @60| +0#0000000&@14
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 |<+0#e000e06&|c|h|a|r|-|6|2|>| +0#0000000&@5|B| @14|S+0#0000e05&|p|e|c|i|a|l| |n|o|t|a|t|i|o|n| |a|l@1|o|w|e|d| |i|n| |L|H|S| |-| |d|e|c|i|m|a|l| @2
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 @75
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 @75
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 @46| +0#0000000&@28
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 |c| @13|<+0#e000e06&|c|h|a|r|-|0|1|0|3|>| +0#0000000&@4|S+0#0000e05&|p|e|c|i|a|l| |n|o|t|a|t|i|o|n| |a|l@1|o|w|e|d| |i|n| |R|H|S| |-| |o|c|t|a|l| @4
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 @60| +0#0000000&@14
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 |<+0#e000e06&|c|h|a|r|-|0|x|0@1|6|4|>| +0#0000000&@1|<+0#e000e06&|c|h|a|r|-|0|x|0@1|4@1|>| +0#0000000&@2|S+0#0000e05&|p|e|c|i|a|l| |n|o|t|a|t|i|o|n| |a|l@1|o|w|e|d| |i|n| |L|H|S| |a|n|d| |R|H|S| |-| |h|e
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 |x|a|d|e|c|i|m|a|l| @50| +0#0000000&@14
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 @75
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 |"+0#0000e05&| |V|i|m|-|s|c|r|i|p|t| |c|o|m@1|e|n|t| |c|h|a|r|a|c|t|e|r|s| @30| +0#0000000&@12
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 |#| |<+0#e000e06&|c|h|a|r|-|0|x|0@1|a|3|>| +0#0000000&@15|L+0#0000e05&|i|n|e| |s|h|o|u|l|d| |n|o|t| |m|a|t|c|h| |a|s| |a| |V|i|m|9|-|s|c|r|i|p|t| |c|o|m@1|e
dd4dd8e83b1f runtime(vim): Improve keymap file highlighting (#13550)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 |n|t| +0#0000000&@72
34870
3f9703c1bbea runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)
Christian Brabandt <cb@256bit.org>
parents: 33893
diff changeset
16 |\|"| |“| @26|L+0#0000e05&|i|n|e| |s|h|o|u|l|d| |n|o|t| |m|a|t|c|h| |a|s| |a| |l|e|g|a|c|y|-|s|c|r|i|p|t| |c|o|m
3f9703c1bbea runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)
Christian Brabandt <cb@256bit.org>
parents: 33893
diff changeset
17 @1|e|n|t| | +0#0000000&@69
3f9703c1bbea runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)
Christian Brabandt <cb@256bit.org>
parents: 33893
diff changeset
18 >:| |"| @27|L+0#0000e05&|i|n|e| |s|h|o|u|l|d| |n|o|t| |m|a|t|c|h| |a|s| |a| |l|e|g|a|c|y|-|s|c|r|i|p|t| |c|o|m
3f9703c1bbea runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)
Christian Brabandt <cb@256bit.org>
parents: 33893
diff changeset
19 @1|e|n|t| +0#0000000&@70
3f9703c1bbea runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)
Christian Brabandt <cb@256bit.org>
parents: 33893
diff changeset
20 @57|2|7|,|1| @9|B|o|t|