Parsing: support '@[ann1 ann2]', '@file:ann' and '@file:[ann]' cases
This commit is contained in:
@@ -7,10 +7,10 @@ annotations
|
||||
;
|
||||
|
||||
annotation
|
||||
: "[" annotationEntry+ "]"
|
||||
: annotationEntry
|
||||
: "@"? "[" annotationEntry+ "]"
|
||||
: "@"? annotationEntry
|
||||
;
|
||||
|
||||
annotationEntry
|
||||
: "@"? ++ SimpleName{"."} typeArguments? valueArguments?
|
||||
: SimpleName{"."} typeArguments? valueArguments?
|
||||
;
|
||||
@@ -24,7 +24,7 @@ fileAnnotations
|
||||
;
|
||||
|
||||
fileAnnotation
|
||||
: "[" "file" ":" annotationEntry+ "]"
|
||||
: "@" "file" ":" ("[" annotationEntry+ "]" | annotationEntry)
|
||||
;
|
||||
|
||||
packageHeader
|
||||
|
||||
Reference in New Issue
Block a user