Aliaksei Budavei
85f054aa3f
runtime(java): Recognise the CommonMark form (///) of Javadoc comments
...
Complement "g:java_ignore_javadoc" with "g:java_ignore_html"
and "g:java_ignore_markdown" to allow selectively disabling
the recognition of HTML and CommonMark respectively.
(Note that this is not a preview feature.)
======================== LIMITATION ========================
According to the syntactical details of JEP 467:
> Any leading whitespace and the three initial / characters
> are removed from each line.
>
> The lines are shifted left, by removing leading whitespace
> characters, until the non-blank line with the least
> leading whitespace has no remaining leading whitespace.
>
> Additional leading whitespace and any trailing whitespace
> in each line is preserved, because it may be significant.
the following example:
------------------------------------------------------------
/// A summary sentence.
/// A list:
/// - Item A.
/// - Item B.
///
/// Some code span, starting here `
/// 1 + 2 ` and ending at the previous \`.
------------------------------------------------------------
should be interpreted as if it were written thus:
------------------------------------------------------------
///A summary sentence.
/// A list:
/// - Item A.
/// - Item B.
///
/// Some code span, starting here `
/// 1 + 2 ` and ending at the previous \`.
------------------------------------------------------------
Since automatic line rewriting will not be pursued, parts of
such comments having significant whitespace may be ‘wrongly’
highlighted. For convenience, a &fex function is defined to
‘correct’ it: g:javaformat#RemoveCommonMarkdownWhitespace()
(:help ft-java-plugin).
References:
https://openjdk.org/jeps/467
https://spec.commonmark.org/0.31.2
closes : #15740
Co-authored-by: Tim Pope <code@tpope.net >
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com >
Signed-off-by: Christian Brabandt <cb@256bit.org >
2024-09-30 19:40:04 +02:00
..
2024-01-02 16:51:11 +01:00
2024-08-18 16:57:04 +02:00
2024-09-23 20:34:47 +02:00
2024-07-28 17:03:29 +02:00
2024-07-17 20:04:22 +02:00
2024-08-20 20:20:43 +02:00
2024-05-11 11:16:21 +02:00
2024-01-02 16:51:11 +01:00
2024-05-11 11:16:21 +02:00
2024-02-12 20:24:56 +01:00
2024-01-02 16:51:11 +01:00
2022-07-30 12:03:16 +01:00
2020-01-21 22:13:42 +01:00
2024-07-10 20:07:10 +02:00
2024-07-28 17:03:29 +02:00
2024-08-17 15:14:43 +02:00
2024-08-17 15:14:43 +02:00
2024-08-20 19:57:00 +02:00
2024-08-20 19:57:00 +02:00
2020-05-31 14:25:22 +02:00
2020-05-31 14:25:22 +02:00
2024-08-15 21:39:33 +02:00
2024-08-15 21:39:33 +02:00
2024-01-02 16:51:11 +01:00
2024-09-30 19:40:04 +02:00
2024-01-02 16:51:11 +01:00
2024-09-29 10:10:51 +02:00
2024-01-02 16:51:11 +01:00
2024-05-24 08:05:00 +02:00
2024-01-02 16:51:11 +01:00
2021-06-27 15:18:56 +02:00
2022-02-26 12:25:45 +00:00
2024-01-01 20:50:51 +01:00
2024-02-25 08:42:52 +01:00
2024-01-23 23:19:02 +01:00
2024-04-22 20:55:32 +02:00
2024-07-17 20:04:22 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-05-27 17:14:17 +02:00
2024-04-10 16:57:46 +02:00
2024-01-02 16:51:11 +01:00
2024-05-11 11:16:21 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-02-25 08:42:52 +01:00
2024-01-02 16:51:11 +01:00
2024-05-17 18:30:26 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-05-05 18:42:31 +02:00
2024-07-14 10:20:20 +02:00
2024-08-25 15:49:54 +02:00
2024-04-11 22:11:21 +02:00
2024-05-24 08:05:00 +02:00
2024-09-26 15:52:22 +02:00
2024-08-16 21:13:50 +02:00
2020-05-26 21:20:45 +02:00
2024-01-14 19:24:05 +01:00
2024-09-26 16:05:02 +02:00
2024-07-17 20:41:48 +02:00
2024-03-13 20:59:27 +01:00
2024-07-11 21:14:15 +02:00
2024-08-28 20:39:24 +02:00
2024-05-11 11:16:21 +02:00
2024-09-26 15:54:43 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-09-24 16:36:37 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-05-11 11:16:21 +02:00
2024-05-11 11:16:21 +02:00
2024-06-18 19:32:39 +02:00
2024-09-29 09:50:52 +02:00
2024-01-02 16:51:11 +01:00
2020-01-14 19:29:13 +01:00
2024-09-29 10:37:47 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-05-11 11:16:21 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-06-18 21:01:23 +02:00
2024-05-11 11:16:21 +02:00
2024-09-29 10:37:47 +02:00
2024-07-12 19:36:53 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-08-12 18:27:41 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-07-06 11:29:38 +02:00
2024-07-07 20:33:46 +02:00
2024-05-17 18:52:45 +02:00
2024-08-14 14:39:32 +02:00
2024-09-15 19:43:06 +02:00
2024-09-30 19:40:04 +02:00
2024-07-12 19:36:53 +02:00
2024-09-23 20:34:47 +02:00
2024-08-01 09:27:53 +02:00
2024-05-05 18:42:31 +02:00
2024-07-28 17:03:29 +02:00
2024-05-11 11:16:21 +02:00
2024-07-18 21:16:05 +02:00
2024-09-08 20:05:23 +02:00
2024-01-02 16:51:11 +01:00
2024-09-29 09:42:42 +02:00
2024-08-16 21:02:21 +02:00
2024-08-14 14:39:32 +02:00
2024-09-29 09:48:19 +02:00
2024-01-02 16:51:11 +01:00
2024-05-11 11:16:21 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-07-28 17:03:29 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-05-19 09:11:09 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-04-29 20:22:46 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-09-23 20:34:47 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-04-04 22:00:58 +02:00
2024-06-09 16:32:48 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-07-17 20:04:22 +02:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-01-02 16:51:11 +01:00
2024-09-29 10:37:47 +02:00
2024-05-15 20:54:35 +02:00
2023-11-04 09:57:09 +01:00
2024-05-31 15:09:42 +02:00
2024-04-13 18:04:53 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2024-08-21 19:57:21 +02:00
2024-08-21 19:57:21 +02:00
2024-08-15 22:02:45 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2024-08-20 19:57:00 +02:00
2024-08-20 19:57:00 +02:00
2023-12-29 16:30:40 +01:00
2023-12-29 16:30:40 +01:00
2024-08-15 21:39:33 +02:00
2024-08-15 21:39:33 +02:00
2024-08-17 15:14:43 +02:00
2024-08-17 15:14:43 +02:00
2022-01-16 14:46:06 +00:00
2024-08-20 19:57:00 +02:00
2024-08-20 19:57:00 +02:00
2020-05-31 14:25:22 +02:00
2020-05-31 14:25:22 +02:00
2024-08-15 21:39:33 +02:00
2024-08-15 21:39:33 +02:00
2024-08-17 15:14:43 +02:00
2024-08-17 15:14:43 +02:00
2023-12-19 20:21:40 +01:00
2024-08-20 19:57:00 +02:00
2024-08-20 19:57:00 +02:00
2020-05-31 14:25:22 +02:00
2020-05-31 14:25:22 +02:00
2024-08-15 21:39:33 +02:00
2024-08-15 21:39:33 +02:00
2024-01-02 16:51:11 +01:00
2024-09-08 19:39:20 +02:00
2024-01-02 16:51:11 +01:00
2023-10-06 19:51:13 +02:00
2023-10-06 19:51:13 +02:00
2024-09-17 19:12:03 +02:00
2024-09-17 19:12:03 +02:00
2024-08-15 22:02:45 +02:00
2023-10-06 19:51:13 +02:00
2023-10-06 19:51:13 +02:00
2024-09-17 19:03:16 +02:00
2024-09-17 19:03:16 +02:00
2024-09-15 20:03:05 +02:00
2024-09-15 20:03:05 +02:00