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

Bug 320621

Summary: [HiddenTerminals] Handling of hidden tokens is not as expected
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: Xtext BacklogAssignee: Karsten Thoms <karsten.thoms>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: karsten.thoms, tmf.xtext-inbox
Version: 1.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Sample Project none

Description Sebastian Zarnekow CLA 2010-07-22 08:50:51 EDT
Grammar
=======

Model:
  elements+=Element;

Element:
  'element' attr += Attribute attr += Attribute? (attr += Attribute attr += Attribute)*;

Attribute:
  value = Datatype;

Datatype hidden(WS, INT):
  ID ('.' ID)*;

Parser fails with valid input:
==============================
element 7 a 8 . b
Comment 1 Sebastian Zarnekow CLA 2010-07-22 08:51:13 EDT
see also bug 317840
Comment 2 Karsten Thoms CLA 2016-09-20 08:28:27 EDT
Created attachment 264283 [details]
Sample Project

Runtime and test project. The following test shows no errors:

	@Test 
	def void loadModel() {
		val result = parseHelper.parse('''
			element 7 a 8 . b
		''')
		Assert.assertNotNull(result)
		assertNoErrors(result)
	}