Need help with Contentassist [message #896691] |
Thu, 19 July 2012 08:01  |
Eclipse User |
|
|
|
Hi everybody,
I have made a very simple grammar to test xbase, the grammar looks like this:
Model:
importedNamespace=Import
xbaseTest=XBaseTest
;
XBaseTest:
'xBaseTest' name=ID '{'
'xExpressions' query=XExpression
'}'
;
Import:
'import' importedNamespace=FqnWithWildCard;
FqnWithWildCard:
FQN ('.*')?;
FQN:
ID ('.' ID)*;
The grammar works as espected, but contentassist is not working correctly.
The keywords are proposed by contentassist, but not the curly brackets in XBaseTest and the name=ID. From other example grammars I know that these can be proposed by xtext and I thought this would be the standard behaviour.
Can you give me a hint on how to implement such contentassists?
Eg when I type xBaseTest in the editor, the contentassist should propose "ID" or something like this....
Thanks in advance,
Amneris
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.12632 seconds