Fixed import declaarations and deprecation attributes
This commit is contained in:
parent
232b13cf62
commit
a53f8319f8
13
D.g4
13
D.g4
|
@ -290,10 +290,7 @@ importList: singleImport (',' importList)?
|
|||
singleImport: (Identifier '=')? identifierChain
|
||||
;
|
||||
|
||||
importBindings: singleImport ':' importBindList
|
||||
;
|
||||
|
||||
importBindList: importBind (',' importBind)?
|
||||
importBindings: singleImport ':' importBind (',' importBind)*
|
||||
;
|
||||
|
||||
importBind: Identifier ('=' Identifier)?
|
||||
|
@ -427,8 +424,7 @@ gotoStatement: 'goto' (Identifier | 'default' | 'case' expression?) ';'
|
|||
withStatement: 'with' '(' (expression | symbol | templateInstance) ')' nonEmptyStatementNoCaseNoDefault
|
||||
;
|
||||
|
||||
synchronizedStatement: 'synchronized' nonEmptyStatementNoCaseNoDefault
|
||||
| 'synchronized' '(' expression ')' nonEmptyStatementNoCaseNoDefault
|
||||
synchronizedStatement: 'synchronized' ('(' expression ')')? nonEmptyStatementNoCaseNoDefault
|
||||
;
|
||||
|
||||
tryStatement: 'try' nonEmptyStatementNoCaseNoDefault (catches | catches finally_ | finally_)
|
||||
|
@ -1119,7 +1115,7 @@ attribute: linkageattribute
|
|||
| alignattribute
|
||||
| pragmaExpression
|
||||
| protectionAttribute
|
||||
| 'deprecated'
|
||||
| deprecated
|
||||
| 'extern'
|
||||
| 'final'
|
||||
| 'synchronized'
|
||||
|
@ -1154,6 +1150,9 @@ protectionAttribute: 'private'
|
|||
| 'export'
|
||||
;
|
||||
|
||||
deprecated: 'deprecated' ('(' assignExpression ')')?
|
||||
;
|
||||
|
||||
traitsExpression: '__traits' '(' Identifier ',' traitsArgument (',' traitsArgument)* ')'
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue