Xtext content assist auto activation doubt [message #855285] |
Tue, 24 April 2012 17:19 |
Cristiano Gavião Messages: 279 Registered: July 2009 |
Senior Member |
|
|
Hi,
I've followed this interesting post Xtext Content Assist Auto Activation.
It works properly when I type the desired key, but it doesn't activate when the character is a keywork too.
Let me explain. I have this grammar:
Model:
'Model' ident=ID
'{'
(imports+=Import*)
('description' '=' description=STRING)?
('version' '=' version=VERSION)?
('owner''=' owner=STRING)?
components+=SoftwareComponent*
'}'
;
I've setup the auto activation to listen to the Equal character ("=") but it is being used as a keyword too in grammar.
Running the dsl, when I type this character the content assist for the next feature is activated properly, but if I choose "=" keyword from the popup assist it won't activate the next assist.
First question, am I using '=' on grammar correctly? I mean, it is this way that I ensure that this character must be write on text?
Second, if I'm doing right, is there anything that could be done to activate the assist after select the keyword?
regards,
Cristiano
|
|
|
|
Powered by
FUDForum. Page generated in 0.03008 seconds