CA shows proposals for second Assignment after cursor position [message #42729] |
Mon, 04 May 2009 08:04  |
Eclipse User |
|
|
|
Hello,
Given the next grammar :
----------------------------------------------
Sentence :
entity = Ent verb = Verb attribute = Attribute;
Ent :
'Java' |
'C++';
Verb :
'is'
|
'isn\'t';
Attribute:
'cool'|
'fast'|
'ugly'|
'simple';
----------------------------------------------
If I write in the editor "Java |" (| is where the cursor is at) and
press ctrl+space the content assist proposals are the ones from the
"Attribute" rule : 'cool', 'fast', etc... Shouldn't they be 'is' and
'isn't' ?
However, if I write "Java|" and press ctrl+space the proposals are
'is' and 'isn't'.
I tried to rewrite the "Sentence" rule to :
"Sentence :
entity = Ent ws=WS verb = Verb w=WS attribute = Attribute;" but then the
content assist stopped working after the first word... I then tried to
override methods in" MyDslProposalProvider extends
org.xtext.example.GenMyDslProposalProvider" but still nothing.
What am I missing here ?
Thanks,
George
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08431 seconds