|reducing cross reference to current DSL file [message #1229358]
||Thu, 09 January 2014 09:25
| Uli Merkel
Registered: June 2013
I have a grammar with a cross reference.|
This runs fine when I test it. But when I have in my workspace another DSL file with the same extension, the content assist offers me the items defined in my current DSL file as well as the items of the other file as well.
So how can I limit the cross reference to items defined in the current DSL file only?
As a XTEXT/JAVA/... novice, some sample code would be nice.
My Grammar is:
grammar de.ulrichmerkel.Narrowcross1 with org.eclipse.xtext.common.Terminals
generate narrowcross1 "http://www.ulrichmerkel.de/Narrowcross1"
'Hello' name=ID '!';
And for the Test I have
Hello Paul !
Hello Peter !
and A2.narrowcross1 as:
Hello Mary !
adding a "sendto", the content assist offers me Peter, Paul and Mary for A1 and A2
But I want to restrict it to "Peter and Paul" for A1 and "Mary" for A2
[Updated on: Thu, 09 January 2014 09:36]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02431 seconds