Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314408 - [grammar] Report error when two terminal rules have same name ignoring case
Summary: [grammar] Report error when two terminal rules have same name ignoring case
Status: CLOSED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 04:21 EDT by Jan Koehnlein CLA
Modified: 2010-06-25 11:36 EDT (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 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.