| Summary: | Produce Error for duplicate token in terminal definition | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Henrik Lindberg <henrik.lindberg> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 2.0.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
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')|'_' | '-' | '-' | '.')+)* ;