KDoc lexer refactored (got rid of hacks and separate tokens for words). Fixed bug with isInComment(element) detection.

This commit is contained in:
Sergey Rostov
2013-05-25 15:22:52 +04:00
committed by Mikhael Bogdanov
parent 365f097904
commit 12e20378a2
14 changed files with 97 additions and 161 deletions
+4 -7
View File
@@ -41,8 +41,7 @@ JetFile: NestedComments.jet
PsiWhiteSpace('\n')
KDoc
PsiElement(KDOC_START)('/**')
PsiWhiteSpace(' ')
PsiElement(KDOC_TEXT)('/***/')
PsiElement(KDOC_TEXT)(' /***/')
PsiElement(KDOC_END)('*/')
PsiWhiteSpace('\n')
REFERENCE_EXPRESSION
@@ -50,12 +49,10 @@ JetFile: NestedComments.jet
PsiWhiteSpace('\n')
KDoc
PsiElement(KDOC_START)('/**')
PsiWhiteSpace(' ')
PsiElement(KDOC_TEXT)('/**')
PsiElement(KDOC_TEXT)(' /**')
PsiWhiteSpace('\n\n')
PsiElement(KDOC_LEADING_ASTERISK)('*')
PsiElement(KDOC_TEXT)('/**')
PsiElement(KDOC_END)('*/')
PsiElement(KDOC_TEXT)('*/')
PsiElement(KDOC_END)('***/')
PsiWhiteSpace('\n')
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('b')