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

Bug 351503

Summary: DebugAntlrGeneratorFragment missing spaces in output
Product: [Modeling] TMF Reporter: Kevin Duncklee <eclipse.kevin>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Kevin Duncklee CLA 2011-07-07 20:58:05 EDT
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.
Comment 1 Sebastian Zarnekow CLA 2011-07-22 11:24:35 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:54:56 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 18:05:52 EDT
Closing all bugs that were set to RESOLVED before Neon.0