parse qualified names in kdoc
This commit is contained in:
@@ -8,7 +8,11 @@ JetFile: Markdown.kt
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
KDOC_LINK
|
||||
PsiElement(KDOC_MARKDOWN_LINK)('[WikiLink]')
|
||||
KDOC_MARKDOWN_LINK
|
||||
PsiElement(LBRACKET)('[')
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('WikiLink')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
@@ -18,7 +22,11 @@ JetFile: Markdown.kt
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' [')
|
||||
KDOC_LINK
|
||||
PsiElement(KDOC_MARKDOWN_LINK)('[DoubleQuotedLink]')
|
||||
KDOC_MARKDOWN_LINK
|
||||
PsiElement(LBRACKET)('[')
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('DoubleQuotedLink')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiElement(KDOC_TEXT)(']')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* [A.B.C]
|
||||
* [[System.out]]
|
||||
* [System.in]
|
||||
*/
|
||||
@@ -0,0 +1,48 @@
|
||||
JetFile: MarkdownQualifiedName.kt
|
||||
PACKAGE_DIRECTIVE
|
||||
<empty list>
|
||||
KDoc
|
||||
PsiElement(KDOC_START)('/**')
|
||||
PsiWhiteSpace('\n ')
|
||||
KDOC_SECTION
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
KDOC_LINK
|
||||
KDOC_MARKDOWN_LINK
|
||||
PsiElement(LBRACKET)('[')
|
||||
KDOC_NAME
|
||||
KDOC_NAME
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('A')
|
||||
PsiElement(DOT)('.')
|
||||
PsiElement(IDENTIFIER)('B')
|
||||
PsiElement(DOT)('.')
|
||||
PsiElement(IDENTIFIER)('C')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' [')
|
||||
KDOC_LINK
|
||||
KDOC_MARKDOWN_LINK
|
||||
PsiElement(LBRACKET)('[')
|
||||
KDOC_NAME
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('System')
|
||||
PsiElement(DOT)('.')
|
||||
PsiElement(IDENTIFIER)('out')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiElement(KDOC_TEXT)(']')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
KDOC_LINK
|
||||
KDOC_MARKDOWN_LINK
|
||||
PsiElement(LBRACKET)('[')
|
||||
KDOC_NAME
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('System')
|
||||
PsiElement(DOT)('.')
|
||||
PsiElement(in)('in')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
@@ -11,7 +11,8 @@ JetFile: ParamTag.kt
|
||||
PsiElement(KDOC_TAG_NAME)('@param')
|
||||
PsiWhiteSpace(' ')
|
||||
KDOC_LINK
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('a')
|
||||
KDOC_NAME
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('a')
|
||||
PsiElement(KDOC_TEXT)(' The description of a.')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
@@ -9,6 +9,7 @@ JetFile: ParamTagAtStart.kt
|
||||
PsiElement(KDOC_TAG_NAME)('@param')
|
||||
PsiWhiteSpace(' ')
|
||||
KDOC_LINK
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('a')
|
||||
KDOC_NAME
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('a')
|
||||
PsiElement(KDOC_TEXT)(' this is a ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
@@ -18,7 +18,11 @@ JetFile: ReturnWithBrackets.kt
|
||||
KDOC_TAG
|
||||
PsiElement(KDOC_TAG_NAME)('@return')
|
||||
KDOC_LINK
|
||||
PsiElement(KDOC_MARKDOWN_LINK)('[x]')
|
||||
KDOC_MARKDOWN_LINK
|
||||
PsiElement(LBRACKET)('[')
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('x')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiElement(KDOC_TEXT)(' This is a reference')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
@@ -14,7 +14,8 @@ JetFile: Sections.kt
|
||||
PsiElement(KDOC_TAG_NAME)('@param')
|
||||
PsiWhiteSpace(' ')
|
||||
KDOC_LINK
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('T')
|
||||
KDOC_NAME
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('T')
|
||||
PsiElement(KDOC_TEXT)(' a type parameter.')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
@@ -32,7 +33,8 @@ JetFile: Sections.kt
|
||||
PsiElement(KDOC_TAG_NAME)('@param')
|
||||
PsiWhiteSpace(' ')
|
||||
KDOC_LINK
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('a')
|
||||
KDOC_NAME
|
||||
PsiElement(KDOC_TEXT_OR_LINK)('a')
|
||||
PsiElement(KDOC_TEXT)(' a constructor parameter.')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
Reference in New Issue
Block a user