File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
UnrealAngelscriptParser/Grammar Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ UProperty: 'UPROPERTY';
4444
4545UFunction: ' UFUNCTION ' ;
4646
47+ UEnum: ' UENUM ' ;
48+
4749Import: ' import' ;
4850
4951From: ' from' ;
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ annotationList:
4141annotation :
4242 Identifier (Assign expression)?;
4343
44+ uenum :
45+ UEnum LeftParen annotationList? RightParen;
46+
4447utype :
4548 (UClass | UStruct) LeftParen annotationList? RightParen;
4649
@@ -367,10 +370,10 @@ enumSpecifier:
367370 enumHead LeftBrace (enumeratorList Comma?)? RightBrace Semi?;
368371
369372enumHead :
370- enumkey (nestedNameSpecifier? Identifier)? enumbase?;
373+ uenum? enumkey (nestedNameSpecifier? Identifier)? enumbase?;
371374
372375opaqueEnumDeclaration :
373- enumkey Identifier enumbase? Semi;
376+ uenum? enumkey Identifier enumbase? Semi;
374377
375378enumkey : Enum;
376379
You can’t perform that action at this time.
0 commit comments