KDoc wiki links pair matcher and @tags highlighter

This commit is contained in:
Sergey Rostov
2013-05-25 19:05:01 +04:00
committed by Mikhael Bogdanov
parent 12e20378a2
commit bcc2c46e99
13 changed files with 267 additions and 63 deletions
+5
View File
@@ -0,0 +1,5 @@
/**
* @tag
* text @notATag
* @
*/
+17
View File
@@ -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>
+4
View File
@@ -0,0 +1,4 @@
/**
* [[WikiLink]]
* Just \[[ and \]]
*/
+20
View File
@@ -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>