Community
Participate
Working Groups
Build Identifier: M20100909-0800 The following grammar generates an editor that can not do code completion: Rule1: (rules+=Rule2)* ; Rule2 : name=ID namespace=NAMESPACE ; terminal NAMESPACE : ('a'..'z'|'A'..'Z'|'_')* ; The reason is that the terminal NAMESPACE is similar to the rule ID this causes the rule ID not matching anymore. The genreated parser matches NAMESPACE befor ID. It would be nice if the grammar editor issues a warning in such a case. Reproducible: Always Steps to Reproduce: 1. Create the following grammar: Rule1: (rules+=Rule2)* ; Rule2 : name=ID namespace=NAMESPACE ; terminal NAMESPACE : ('a'..'z'|'A'..'Z'|'_')* ; 2. generate the editor 3. create a modelfile for this grammar 4. try to code complete the empty model file
I'ld only want to have a warning for this if we can suppress that warning again.