KT-8275 Unterminated multi-line comment should be compilation error

#KT-8275 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-12-17 18:09:43 +03:00
committed by Andrey Breslav
parent 7cad65a1e7
commit 0d79c65d73
13 changed files with 68 additions and 4 deletions
@@ -7,3 +7,5 @@ JetFile: DocCommentAtBeginningOfFile1.kt
PsiElement(KDOC_START)('/**')
KDOC_SECTION
<empty list>
PsiErrorElement:Unclosed comment
<empty list>
@@ -8,3 +8,5 @@ JetFile: DocCommentAtBeginningOfFile2.kt
PsiWhiteSpace('\n')
KDOC_SECTION
PsiElement(KDOC_TEXT)('/**')
PsiErrorElement:Unclosed comment
<empty list>
@@ -8,3 +8,5 @@ JetFile: DocCommentAtBeginningOfFile3.kt
PsiWhiteSpace('\n\n')
KDOC_SECTION
PsiElement(KDOC_TEXT)('fooo')
PsiErrorElement:Unclosed comment
<empty list>
@@ -10,3 +10,5 @@ JetFile: DocCommentAtBeginningOfFile4.kt
PsiElement(KDOC_TEXT)('/**foo*/')
PsiWhiteSpace('\n\n')
PsiElement(KDOC_TEXT)('asdfas')
PsiErrorElement:Unclosed comment
<empty list>
+2
View File
@@ -8,3 +8,5 @@ JetFile: Incomplete.kt
PsiWhiteSpace('\n ')
KDOC_SECTION
PsiElement(KDOC_TEXT)('contents')
PsiErrorElement:Unclosed comment
<empty list>