Skip to content

Commit

Permalink
Fix Enum with Special Names
Browse files Browse the repository at this point in the history
  • Loading branch information
francistogram committed May 18, 2024
1 parent 29962e0 commit 5a13d8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/language/src/generated/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export interface EnumField extends AstNode {
readonly $type: 'EnumField';
attributes: Array<DataModelFieldAttribute>
comments: Array<string>
name: RegularID
name: RegularIDWithTypeNames
}

export const EnumField = 'EnumField';
Expand Down
2 changes: 1 addition & 1 deletion packages/language/src/generated/grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ export const ZModelGrammar = (): Grammar => loadedZModelGrammar ?? (loadedZModel
"terminal": {
"$type": "RuleCall",
"rule": {
"$ref": "#/rules@46"
"$ref": "#/rules@47"
},
"arguments": []
}
Expand Down
2 changes: 1 addition & 1 deletion packages/language/src/zmodel.langium
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Enum:

EnumField:
(comments+=TRIPLE_SLASH_COMMENT)*
name=RegularID (attributes+=DataModelFieldAttribute)*;
name=RegularIDWithTypeNames (attributes+=DataModelFieldAttribute)*;

// function
FunctionDecl:
Expand Down

0 comments on commit 5a13d8b

Please sign in to comment.