Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333653 - confusing delimiter (pipe symbol) in cross reference declarations in Xtext Grammars
Summary: confusing delimiter (pipe symbol) in cross reference declarations in Xtext Gr...
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 09:00 EST by Peter Chern CLA
Modified: 2011-01-10 14:47 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Chern CLA 2011-01-06 09:00:35 EST
Build Identifier: 

The delimiter to specify the syntax for cross-references happens to be the same symbol (the pipe symbol, "|") as the one used for alternatives in the Xtext grammar. I understand that it is clearly stated in the documentation, which is great - but I think that it is very confusing, especially for new users and Xtext could be made more intuitive by changing it to another symbol.

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-01-10 11:46:03 EST
Peter,

thanks for the feedback. We'll not change the syntax for cross references as people tend to get used to it and the pipe has been the delimiter since the early days of Xtext. Please note that the syntax highlighting for types (italic by default) will make it even clearer that this is not an alternative but an optional delimiter.
Comment 2 Peter Chern CLA 2011-01-10 14:47:38 EST
Sebastian,

thanks for the comment, I can live with that :) Keep up the great work on Xtext!