change KDoc parsing so that space after parameter/section name is not included in tag content; support @property tag in KDocFinder
This commit is contained in:
@@ -13,6 +13,7 @@ JetFile: ParamTag.kt
|
||||
KDOC_MARKDOWN_LINK
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('a')
|
||||
PsiElement(KDOC_TEXT)(' The description of a.')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(KDOC_TEXT)('The description of a.')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
@@ -11,5 +11,6 @@ JetFile: ParamTagAtStart.kt
|
||||
KDOC_MARKDOWN_LINK
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('a')
|
||||
PsiElement(KDOC_TEXT)(' this is a ')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(KDOC_TEXT)('this is a ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
@@ -16,7 +16,8 @@ JetFile: Sections.kt
|
||||
KDOC_MARKDOWN_LINK
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('T')
|
||||
PsiElement(KDOC_TEXT)(' a type parameter.')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(KDOC_TEXT)('a type parameter.')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
@@ -34,6 +35,7 @@ JetFile: Sections.kt
|
||||
KDOC_MARKDOWN_LINK
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('a')
|
||||
PsiElement(KDOC_TEXT)(' a constructor parameter.')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(KDOC_TEXT)('a constructor parameter.')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
Reference in New Issue
Block a user