Skip to content

Commit 2f3dde1

Browse files
committed
remove comments as parsable token
1 parent b51f996 commit 2f3dde1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/language/context-mapper-dsl.langium

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ grammar ContextMapperDsl
22

33
terminal ID: /[_a-zA-Z][\w_]*/;
44
terminal STRING: /"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/;
5-
terminal ML_COMMENT: /\/\*[\s\S]*?\*\//;
6-
terminal SL_COMMENT: /\/\/[^\n\r]*/;
75

86
terminal OPEN: '{';
97
terminal CLOSE: '}';
108

119
hidden terminal WS: /\s+/;
12-
hidden terminal HIDDEN_ML_COMMENT: ML_COMMENT;
13-
hidden terminal HIDDEN_SL_COMMENT: SL_COMMENT;
10+
hidden terminal ML_COMMENT: /\/\*[\s\S]*?\*\//;
11+
hidden terminal SL_COMMENT: /\/\/[^\n\r]*/;
1412

1513
entry ContextMappingModel:
1614
(
@@ -169,7 +167,7 @@ CustomerSupplierRelationship:
169167
(OPEN
170168
(
171169
('implementationTechnology' ('=')? implementationTechnology=STRING) &
172-
(('exposedAggregates' ('=')? upstreamExposedAggregates+=[Aggregate]) ("," upstreamExposedAggregates+=[Aggregate])* (exposedAggregatesComment=SL_COMMENT)?) &
170+
(('exposedAggregates' ('=')? upstreamExposedAggregates+=[Aggregate]) ("," upstreamExposedAggregates+=[Aggregate])*) &
173171
('downstreamRights' ('=')? downstreamGovernanceRights=DownstreamGovernanceRights)
174172
)
175173
CLOSE)?

0 commit comments

Comments
 (0)