Clarify grammar rules for annotations
This commit is contained in:
@@ -3,14 +3,21 @@
|
||||
*/
|
||||
|
||||
annotations
|
||||
: annotation*
|
||||
: (annotation | annotationList)*
|
||||
;
|
||||
|
||||
annotation
|
||||
: "@"? "[" annotationEntry+ "]"
|
||||
: "@"? annotationEntry
|
||||
: annotationPrefix? unescapedAnnotation
|
||||
;
|
||||
|
||||
annotationEntry
|
||||
annotationList
|
||||
: annotationPrefix "[" unescapedAnnotation+ "]"
|
||||
;
|
||||
|
||||
annotationPrefix:
|
||||
: ("@" (":" "file")?)
|
||||
;
|
||||
|
||||
unescapedAnnotation
|
||||
: SimpleName{"."} typeArguments? valueArguments?
|
||||
;
|
||||
Reference in New Issue
Block a user