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

Bug 314408

Summary: [grammar] Report error when two terminal rules have same name ignoring case
Product: [Modeling] TMF Reporter: Jan Koehnlein <jan>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jan Koehnlein CLA 2010-05-26 04:21:12 EDT
We are converting Xtext terminal rules into AntLR lexer rules with UPPER CASE NAMES, thus introducing possible name clashes. Users should be notified of such situations. This must also take grammar mix-ins into account.
Comment 1 Sebastian Zarnekow CLA 2010-05-27 18:17:22 EDT
That's what 
org.eclipse.xtext.xtext.XtextValidator.checkRuleName(AbstractRule)
should do. Please find the tests here: org.eclipse.xtext.xtext.XtextValidationTest (many tests call checkRuleName directly)
Comment 2 Sebastian Zarnekow CLA 2010-06-25 11:36:40 EDT
Please reopen if I missed the point.