feat(IDEA-353092): early markdown jdoc support

GitOrigin-RevId: 8c02012551f1a97d3f5d6aed021889911b138b28
This commit is contained in:
Mathias Boulay
2024-08-12 18:06:41 +02:00
committed by intellij-monorepo-bot
parent dc5c78e7f9
commit 3825899d51
317 changed files with 10599 additions and 394 deletions

View File

@@ -3025,7 +3025,8 @@ public final class HighlightUtil {
static HighlightInfo.Builder checkUnclosedComment(@NotNull PsiComment comment) {
if (!(comment instanceof PsiDocComment) && comment.getTokenType() != JavaTokenType.C_STYLE_COMMENT) return null;
if (!comment.getText().endsWith("*/")) {
String text = comment.getText();
if (text.startsWith("/*") && !text.endsWith("*/")) {
int start = comment.getTextRange().getEndOffset() - 1;
int end = start + 1;
String description = JavaErrorBundle.message("unclosed.comment");