| Summary: | DebugAntlrGeneratorFragment missing spaces in output | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Kevin Duncklee <eclipse.kevin> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge |
| Version: | 2.0.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Pushed to master. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: I20110613-1736 A data type rule that does not contain assignments but has multiple tokens does not generate correct output when using the DebugAntlrGeneratorFragment feature. The input Type: ID INT; generates the output: // Rule Type ruleType : RULE_IDRULE_INT ; It should generate: RULE_ID RULE_INT This also occurs with more complicated rules using alternatives. This is using the latest release from xtext.itemis.com: eclipse-SDK-3.7-Xtext-2.0.0-win32-x86_64.zip Reproducible: Always Steps to Reproduce: 1. Create the test grammar rule above (with org.eclipse.xtext.common.Terminals). 2. Add the following to the .mwe2 file in the language block: fragment = parser.antlr.DebugAntlrGeneratorFragment {} 3. Look at FQCN_NAME.parser.antlr.internal.DebugInternalNAME.g.