Parser: added the support file annotations to grammar.
This commit is contained in:
@@ -16,7 +16,15 @@ script
|
|||||||
;
|
;
|
||||||
|
|
||||||
preamble
|
preamble
|
||||||
: packageHeader? import*
|
: fileAnnotations? packageHeader? import*
|
||||||
|
;
|
||||||
|
|
||||||
|
fileAnnotations
|
||||||
|
: fileAnnotation*
|
||||||
|
;
|
||||||
|
|
||||||
|
fileAnnotation
|
||||||
|
: "[" "file" ":" annotationEntry+ "]"
|
||||||
;
|
;
|
||||||
|
|
||||||
packageHeader
|
packageHeader
|
||||||
@@ -54,4 +62,4 @@ See [Packages](packages.html)
|
|||||||
[undocumented]
|
[undocumented]
|
||||||
typedef
|
typedef
|
||||||
: modifiers "type" SimpleName (typeParameters typeConstraints)? "=" type
|
: modifiers "type" SimpleName (typeParameters typeConstraints)? "=" type
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user