add a token for inline Markdown links; add test for identifier links with labels
This commit is contained in:
@@ -6,7 +6,9 @@ JetFile: HttpLink.kt
|
||||
PsiWhiteSpace('\n ')
|
||||
KDOC_SECTION
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' [Kotlin](http://kotlinlang.org) is made by [JetBrains][1]')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
PsiElement(KDOC_MARKDOWN_INLINE_LINK)('[Kotlin](http://kotlinlang.org)')
|
||||
PsiElement(KDOC_TEXT)(' is made by [JetBrains][1]')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' [1]: http://www.jetbrains.com/')
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/**
|
||||
* [foo][bar]
|
||||
*/
|
||||
@@ -0,0 +1,16 @@
|
||||
JetFile: MarkdownLinkWithLabel.kt
|
||||
PACKAGE_DIRECTIVE
|
||||
<empty list>
|
||||
KDoc
|
||||
PsiElement(KDOC_START)('/**')
|
||||
PsiWhiteSpace('\n ')
|
||||
KDOC_SECTION
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' [foo]')
|
||||
KDOC_MARKDOWN_LINK
|
||||
PsiElement(LBRACKET)('[')
|
||||
KDOC_NAME
|
||||
PsiElement(IDENTIFIER)('bar')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
Reference in New Issue
Block a user