annotate runtime/syntax/testdir/dumps/java_comments_99.dump @ 34613:b0d91b836400

runtime(java): Recognise the {@snippet} documentation tag (#14271) Commit: https://github.com/vim/vim/commit/3e72bf10a0a2fc34f01ff9663ed3324c2a140228 Author: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com> Date: Fri Mar 22 21:32:48 2024 +0300 runtime(java): Recognise the {@snippet} documentation tag (https://github.com/vim/vim/issues/14271) Remember that ?code fragments are typically Java source code, but they may also be fragments of properties files, source code in other languages, or plain text.? Therefore, with these changes, markup tags are highlighted in the Java source files (as external snippets) and in the {@snippet} tags. Also: - Improve matching of the multi-line {@code} documentation tag with any contained balanced braces. - Recognise the {@literal} documentation tag. - Highlight stray blanks in comments. Related to an enhancement proposal for PCRE-like callouts discussed at https://github.com/vim/vim/issues/11217. References: https://openjdk.org/jeps/413 https://docs.oracle.com/en/java/javase/21/docs/specs/javadoc/doc-comment-spec.html Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Mar 2024 19:45:04 +0100
parents
children a717b67d7241
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34613
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 | +0&#ffffff0@3|/+0#0000e05&|*@1| +0#ffffff16#ff404010| +0#0000000#ffffff0@66
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 | +0#0000e05&@4|*| +0#e000e06&|T|h|e| |m|e|t|h|o|d| |{|@|c|o|d|e| |m|a|i|n|}| |m|u|s|t| |b|e| |d|e|c|l|a|r|e|d| |{|@|c|o|d|e| |p|u|b|l|i|c|}|,| |{|@|c|o|d|e| +0#0000000&@4
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 | +0#e000e06&@4|*| |s|t|a|t|i|c|}|,| |a|n|d| |{|@|c|o|d|e| |v|o|i|d|}|.| +0#0000e05&@1|I|t| |m|u|s|t| |s|p|e|c|i|f|y| |a| |f|o|r|m|a|l| |p|a|r|a|m|e|t|e|r| +0#0000000&@5
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 | +0#0000e05&@4|*| |w|h|o|s|e| |d|e|c|l|a|r|e|d| |t|y|p|e| |i|s| |a|r@1|a|y| |o|f| |{+0#e000e06&|@|l|i|n|k| |S|t|r|i|n|g|}|.+0#0000e05&| @1|T|h|e|r|e|f|o|r|e|,| +0#0000000&@8
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 | +0#0000e05&@4|*| |e|i|t|h|e|r| |o|f| |t|h|e| |f|o|l@1|o|w|i|n|g| |d|e|c|l|a|r|a|t|i|o|n|s| |i|s| |a|c@1|e|p|t|a|b|l|e|:| +0#0000000&@16
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 | +0#0000e05&@4|*| +0#ffffff16#ff404010| +0#0000e05#ffffff0|{+0#e000e06&|@|s|n|i|p@1|e|t| |l+0#00e0003&|a|n|g|=+0#e000e06&|"+0#e000002&|j|a|v|a|"|:+0#e000e06&| +0#0000000&@44
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 | +0#e000e06&@4|*| |/@1| |@+0#0000000&|h|i|g|h|l|i|g|h|t| +0#e000e06&|s+0#00e0003&|u|b|s|t|r|i|n|g|=+0#e000e06&|"+0#e000002&|m|a|i|n|"| +0#e000e06&|t+0#00e0003&|y|p|e|=+0#e000e06&|"+0#e000002&|i|t|a|l|i|c|"|:+0#e000e06&| +0#0000000&@22
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 | +0#e000e06&@4|*| |p|u|b|l|i|c| |s|t|a|t|i|c| |v|o|i|d| |m|a|i|n|(|S|t|r|i|n|g|[|]| |a|r|g|s|)| |{| |}| +0#0000000&@25
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 | +0#e000e06&@4|*| |}|<+0#00e0e07&|b+0#af5f00255&|r| +0#00e0e07&|/|>|<|p+0#af5f00255&|r|e| +0#00e0e07&|c+0#00e0003&|l|a|s@1|=+0#00e0e07&|"+0#e000002&|s|n|i|p@1|e|t|"|>+0#00e0e07&| +0#0000000&@39
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 | +0#0000e05&@4|*|{+0#e000e06&|@|c|o|d|e| |p|u|b|l|i|c| |s|t|a|t|i|c| |v|o|i|d| |m|a|i|n|(|S|t|r|i|n|g|.@2| |a|r|g|s|)| |{| |}@1|<+0#00e0e07&|/|p+0#af5f00255&|r|e|>+0#00e0e07&| +0#0000000&@11
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 | +0#0000e05&@4|*| +0#0000000&@68
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 | +0#0000e05&@4|*| |@+0#e000e06&|p|a|r|a|m| +0#00e0e07&|a|r|g|s| +0#0000e05&|o|p|t|i|o|n|a|l| |c+0&#ffd7d7255|o|m@1|a|n|d|e|-+0&#ffffff0|l|i|n|e| |a|r|g|u|m|e|n|t|s| +0#ffffff16#ff404010| +0#0000000#ffffff0@22
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 | +0#0000e05&@4|*| |@|j+0&#ffd7d7255|l|s| +0&#ffffff0|1|2|.|1|.|4| |I|n|v|o|k|e| |{+0#e000e06&|@|c|o|d|e| |T|e|s|t|.|m|a|i|n|}| +0#0000000&@31
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 | +0#0000e05&@4|*|/| +0#0000000&@67
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 @4|/+0#0000e05&@1| |@+0#0000000&|s|t|a|r|t| +0#0000e05&|r+0#00e0003&|e|g|i|o|n| +0#0000e05&|=| |m+0#e000002&|a|i|n| +0#0000000&@47
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 @4|/+0#0000e05&@1| |@+0#0000000&|l|i|n|k| +0#0000e05&|s+0#00e0003&|u|b|s|t|r|i|n|g| +0#0000e05&|=| |'+0#e000002&|S|t|r|i|n|g|'| +0#0000e05&|t+0#00e0003&|a|r|g|e|t| +0#0000e05&|=| |'+0#e000002&|j|a|v|a|.|l|a|n|g|.|S|t|r|i|n|g|'| +0#0000e05&|:| +0#0000000&@11
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 @4|p+0#00e0003&|u|b|l|i|c| +0#0000000&|s+0#00e0003&|t|a|t|i|c| +0#0000000&|v+0#00e0003&|o|i|d| +0#0000000&|m|a|i|n|(|S|t|r|i|n|g|[|]| |a|r|g|s|)| |{| |}| @28
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 @4|/+0#0000e05&@1| |@+0#0000000&|e|n|d| @63
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 >}| @73
b0d91b836400 runtime(java): Recognise the {@snippet} documentation tag (#14271)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 @57|2|5|,|1| @9|B|o|t|