KDoc wiki links pair matcher and @tags highlighter
This commit is contained in:
committed by
Mikhael Bogdanov
parent
12e20378a2
commit
bcc2c46e99
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* @tag
|
||||
* text @notATag
|
||||
* @
|
||||
*/
|
||||
@@ -0,0 +1,17 @@
|
||||
JetFile: AtTags.jet
|
||||
KDoc
|
||||
PsiElement(KDOC_START)('/**')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
PsiElement(KDOC_TAG_NAME)('@tag')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' text @notATag')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' @')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
NAMESPACE_HEADER
|
||||
<empty list>
|
||||
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* [[WikiLink]]
|
||||
* Just \[[ and \]]
|
||||
*/
|
||||
@@ -0,0 +1,20 @@
|
||||
JetFile: Markdown.jet
|
||||
KDoc
|
||||
PsiElement(KDOC_START)('/**')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' ')
|
||||
PsiElement(KDOC_WIKI_LINK_OPEN)('[[')
|
||||
PsiElement(KDOC_TEXT)('WikiLink')
|
||||
PsiElement(KDOC_WIKI_LINK_CLOSE)(']]')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_LEADING_ASTERISK)('*')
|
||||
PsiElement(KDOC_TEXT)(' Just ')
|
||||
PsiElement(KDOC_MARKDOWN_ESCAPED_CHAR)('\[')
|
||||
PsiElement(KDOC_TEXT)('[ and ')
|
||||
PsiElement(KDOC_MARKDOWN_ESCAPED_CHAR)('\]')
|
||||
PsiElement(KDOC_TEXT)(']')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(KDOC_END)('*/')
|
||||
NAMESPACE_HEADER
|
||||
<empty list>
|
||||
Reference in New Issue
Block a user