Report syntax error on unescaped annotation
Also adjust parser testData
This commit is contained in:
@@ -7,11 +7,11 @@ annotations
|
||||
;
|
||||
|
||||
annotation
|
||||
: annotationPrefix? unescapedAnnotation
|
||||
: "@" (annotationUseSiteTarget ":")? unescapedAnnotation
|
||||
;
|
||||
|
||||
annotationList
|
||||
: annotationPrefix "[" unescapedAnnotation+ "]"
|
||||
: "@" (annotationUseSiteTarget ":")? "[" unescapedAnnotation+ "]"
|
||||
;
|
||||
|
||||
annotationUseSiteTarget
|
||||
@@ -24,10 +24,6 @@ annotationUseSiteTarget
|
||||
: "sparam"
|
||||
;
|
||||
|
||||
annotationPrefix:
|
||||
: ("@" (annotationUseSiteTarget ":")?)
|
||||
;
|
||||
|
||||
unescapedAnnotation
|
||||
: SimpleName{"."} typeArguments? valueArguments?
|
||||
;
|
||||
Reference in New Issue
Block a user