Reputation: 975
Based on the following Xtext (2.10) code snippet:
The expectation for "CRT+L":
The ISSUE:
If "CRT+L" is done on the "BEGSR" token, the "Name - ID" option is missing.
When Enter is pressed and incorrect token "BEGSR*PSSR" is created. The rule should be that "BEGSR" is always followed by a space. BUT IT IS NOT!
Please help me,
Upvotes: 1
Views: 65
Reputation: 11868
Xtext has two extension points for such things
complete_<Rulename>
or complete<Rulename>_<featurename>
and some special rules like completeKeyword
that you may override and customize.DefaultAutoEditStrategy
Upvotes: 1