Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335775

Summary: Produce Error for duplicate token in terminal definition
Product: [Modeling] TMF Reporter: Henrik Lindberg <henrik.lindberg>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Henrik Lindberg CLA 2011-01-29 13:40:14 EST
When there is a duplicate token in a terminal, there is no error in the .xtext editor, but when generating the grammar, an error is produced with a reference to the InternalMyLexer.g - "duplicate token type '-' when collapsing subrule into set".

terminal NAME :
	'::'? (('0'..'9')|('a'..'z')|('A'..'Z')|'_' | '-' | '-' | '.')+ 
	('::' (('0'..'9')|('a'..'z')|('A'..'Z')|'_' | '-' | '-' | '.')+)*
	;