[javadoc] IDEA-285556 Support language injection into snippet

Fix injection for empty snippets. The range to inject is now starts after the colon and ends when the body ends. If no colon exist, then use the whole body as an injection point.

GitOrigin-RevId: c7961f13c30212f52aad45a121bcf11b70ce8f2b
This commit is contained in:
Nikita Eshkeev
2022-01-19 03:16:01 +03:00
committed by intellij-monorepo-bot
parent 06c3a7e94f
commit 715e914e30
7 changed files with 66 additions and 22 deletions

View File

@@ -0,0 +1,6 @@
/**
* A simple program.
* {<warning descr="'@snippet' tag is not available at this language level">@snippet</warning> :}
*/
class A {
}

View File

@@ -0,0 +1,8 @@
/**
* A simple program.
* {<warning descr="'@snippet' tag is not available at this language level">@snippet</warning> :
*
* }
*/
class A {
}