Open cdietrich opened 6 years ago
TODO @cdietrich retest with 2.15 and original grammar
@szarnekow i remembered what the problem with the inlining of the list to the group was
given the grammar
Model:
'model' name=Identifier '{'(
(a=A)? &
(b=B)? &
c+=C*
)'}';
B: {B}'b' '{' '}';
A: {A}'a' '{' '}';
C:
{C}
'c' sr+=SomeReference ('+' sr+=SomeReference)* '{'
xc1b=SomeEnum?
'}';
SomeReference: target=Identifier;
enum SomeEnum: bla='Bla' | blubb='Blubb';
Identifier: ID;
and model
model MyModel {
c A+B+C {}
c D{Blubb}
<|>
b{}
}
you dont get a proposal for "a" at the cursor
nor for "a" and "b" here
model MyModel {
c A+B+C {}
c D{Blubb}
<|>
}
problem is still there in Xtext 2.23
another potential workaround
CList:
->c+=C ->c+=C*;
cc @szarnekow
Given the grammar
and the sample model
with
<|>
beeing the cursor content assist gives