don't parse lines starting with @ as KDoc tags if they're inside a Markdown code fence
#KT-11789 Fixed
This commit is contained in:
Vendored
+3
@@ -1,5 +1,8 @@
|
||||
/**
|
||||
* @tag
|
||||
* text @notATag
|
||||
* ```
|
||||
* @notATag and some description
|
||||
* ```
|
||||
* @
|
||||
*/
|
||||
+10
-1
@@ -16,6 +16,15 @@ JetFile: AtTags.kt
|
||||
PsiElement(KDOC_TEXT)(' text @notATag')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ```')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' @notATag and some description')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ```')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' @')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
Reference in New Issue
Block a user