Skip to content

Commit 5a13d8b

Browse files
committed
Fix Enum with Special Names
1 parent 29962e0 commit 5a13d8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/language/src/generated/ast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export interface EnumField extends AstNode {
366366
readonly $type: 'EnumField';
367367
attributes: Array<DataModelFieldAttribute>
368368
comments: Array<string>
369-
name: RegularID
369+
name: RegularIDWithTypeNames
370370
}
371371

372372
export const EnumField = 'EnumField';

packages/language/src/generated/grammar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ export const ZModelGrammar = (): Grammar => loadedZModelGrammar ?? (loadedZModel
23572357
"terminal": {
23582358
"$type": "RuleCall",
23592359
"rule": {
2360-
"$ref": "#/rules@46"
2360+
"$ref": "#/rules@47"
23612361
},
23622362
"arguments": []
23632363
}

packages/language/src/zmodel.langium

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Enum:
209209

210210
EnumField:
211211
(comments+=TRIPLE_SLASH_COMMENT)*
212-
name=RegularID (attributes+=DataModelFieldAttribute)*;
212+
name=RegularIDWithTypeNames (attributes+=DataModelFieldAttribute)*;
213213

214214
// function
215215
FunctionDecl:

0 commit comments

Comments
 (0)