Report syntax error on unescaped annotation
Also adjust parser testData
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
@file:foo
|
||||
foo bar
|
||||
@foo @bar
|
||||
@file: baz
|
||||
fun foo() {}
|
||||
|
||||
+2
@@ -18,6 +18,7 @@ JetFile: withoutPackageWithSimpleAnnotation.kt
|
||||
FUN
|
||||
MODIFIER_LIST
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
@@ -25,6 +26,7 @@ JetFile: withoutPackageWithSimpleAnnotation.kt
|
||||
PsiElement(IDENTIFIER)('foo')
|
||||
PsiWhiteSpace(' ')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
|
||||
Reference in New Issue
Block a user