Content-Assist question [message #715144] |
Fri, 12 August 2011 10:09  |
Eclipse User |
|
|
|
I have a grammar which includes the following rules:
Model :
....
(('OCC' | 'COC') '=')? oCC = Value '%'? ';'
....
;
SignedInt returns ecore::EInt : NegativeINT | INT;
terminal NegativeINT returns ecore::EInt : '-' ('0'..'9')+;
terminal FLOAT returns ecore::EDouble :
('-'|'+')? (INT '.' INT+ | '.' INT+ | INT '.') ('e' ('-'|'+') INT+)?;
Value returns ecore::EDouble :
SignedInt | FLOAT ;
I have a content-assist test as follows:
newBuilder(getSetup())
....
.assertMatchString("COC, OCC")
.append("OCC")
.append(" ")
.assertText("=")
.append("=")
.append(" ")
.assertMatchString("oCC")
.append("10")
.append(" ")
.assertMatchString("%, ;")
.append("% ;")
.append(" ")
;
The test runs fine.
My problem is that if I am in the editor on a line with:
OCC =
then Ctrl-Space does NOT give me anything (for a variable of type STRING for example
I would get "variableName" - STRING
What should be done to display say "oCC" - Value
Thanks in advance
MS
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03102 seconds