Mercurial > vim
annotate runtime/syntax/testdir/dumps/java_comments_04.dump @ 34632:a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Commit: https://github.com/vim/vim/commit/8e59a7ba88776d5425bafc6eefd978de3312fcdf
Author: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Date: Mon Mar 25 18:18:28 2024 +0300
runtime(java): Recognise the inline kind of the {@return} tag (https://github.com/vim/vim/issues/14284)
Also:
- Refine comment matching (javaComment{Error\ and,Start}).
- Continue rewriting regexps (prefer atom grouping with
non-capturing parens; factor out common prefixes in
alternations).
- Allow for relative paths with the _file_ attribute of
{@snippet}.
- Anticipate HTML in the @see tags.
- Match the nullary method parens in javaDocSeeTagParam.
- Improve the boundary patterns for summary sentences of
documentation.
> This sentence ends at ... or at the first tag (as defined
> below).
There are Java documentation tags (@) and there are HTML
tags (<?>) (with Markdown looming large; see JEP 467). With
block tags, e.g. @param, @return, @see, we begin another
documentation "sentence" whether or not the author has
terminated the summary sentence with a period; with
.<!-- -->, we may follow abbreviations, enumerations,
initials, (but instead consider @literal or ) _within_
the summary sentence. On the other hand, inline tags, e.g.
@code, @link, @literal, should not terminate the summary
sentence.
References:
https://bugs.openjdk.org/browse/JDK-8075778
https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html#firstsentence
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 | Mon, 25 Mar 2024 16:30:10 +0100 |
parents | |
children | a215c8752c30 |
rev | line source |
---|---|
34632
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 | +0#0000e05#ffffff0@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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 | +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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 | +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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 | +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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 | +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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 | +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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 | +0#0000e05&@4|*| +0#0000000&@68 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 | +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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 | +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#0000e05&|*|/| +0#0000000&@28 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 @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#ffffff16#ff404010@4| +0#0000000#ffffff0@42 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 @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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 @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 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 @4|/+0#0000e05&@1| |@+0#0000000&|e|n|d| +0#ffffff16#ff404010| +0#0000000#ffffff0@62 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 @75 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 @4|/+0#0000e05&|*@1| |{+0#e000e06&|@|r|e|t|u|r|n| |a|n| |e|m|p|t|y| |s|t|r|i|n|g|}| +0#ffffff16#ff404010@2| +0#0000000#ffffff0@38 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 | +0#0000e05&@4|*| +0#e000e06&|@|s|e@1| |<+0#00e0e07&|a+0#af5f00255&| +0#00e0e07&|h+0#00e0003&|r|e|f|=+0#00e0e07&|"+0#e000002&|h|t@1|p|s|:|/@1|d|o|c|s|.|o|r|a|c|l|e|.|c|o|m|/|j|a|v|a|s|e|/|s|p|e|c|s|/|j|l|s|/|s|e|2|1|/|h|t|m|l|/|j|l|s |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 |-|3|.|h|t|m|l|#|j|l|s|-|3|.|1|0|.|5|"|>+0#00e0e07&|3+8#e000e06&|.|1|0|.|5| |S|t|r|i|n|g| |L|i|t|e|r|a|l|s|<+0#00e0e07&|/|a+0#af5f00255&|>+0#00e0e07&| +0#0000000&@28 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 | +0#0000e05&@4|*| +0#e000e06&|@|s|e@1| |O+0#00e0e07&|b|j|e|c|t|#|t|o|S|t|r|i|n|g|(|)| +0#0000000&|*+0#e000e06&|/| +0#0000000&@42 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 @4|/+0#0000e05&@1| |@+0#0000000&|s|t|a|r|t| +0#0000e05&|r+0#00e0003&|e|g|i|o|n| +0#0000e05&|=| |t+0#e000002&|o|S|t|r|i|n|g| +0#ffffff16#ff404010| +0#0000000#ffffff0@42 |
a717b67d7241
runtime(java): Recognise the inline kind of the {@return} tag (#14284)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 @57|7|3|,|3|-|6| @7|9|3|%| |