QNames with dots in segments [message #1015992] |
Mon, 04 March 2013 09:17  |
Eclipse User |
|
|
|
Our language uses some references found in a custom EMF resource (i.e. not managed by XText), and the names of some of these references may contain dots. They are exported as single-segment QNames by the customized IResourceDescription.
These specific references only occur at a given point in the grammar, however, I cannot use this fact in a custom IQualifiedNameConverter since this class is not sensitive to grammar context. This means the strings entered in the DSL text will be split when searching the object descriptions provided by the global scope, and the scope search will fail.
Should I implement some form of escaping of the dot character in both the custom resource description and the qualified name provider of the grammar? I'm not sure of the latter, since the DSL has no grammar rule to define the objects I'm trying to import.
Any advice would be great.
|
|
|
|
Re: QNames with dots in segments [message #1016219 is a reply to message #1016069] |
Tue, 05 March 2013 09:36  |
Eclipse User |
|
|
|
Thanks, it works if I split the names containing dots in the custom emf resource description, and it's not a problem to have them in several segments (although it makes no semantic sense, it's not visible anyway)
|
|
|
Powered by
FUDForum. Page generated in 0.04051 seconds