| Summary: | [HiddenTerminals] Handling of hidden tokens is not as expected | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sebastian Zarnekow <sebastian.zarnekow> | ||||
| Component: | Xtext Backlog | Assignee: | 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: |
|
||||||
see also bug 317840 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)
}
|
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