| Summary: | [formatter] Formatter matches missing elements | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Carl Wannheden <carl.wannheden> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | moritz.eysholdt, stephane |
| Version: | 0.8.0 | Flags: | moritz.eysholdt:
indigo+
|
| Target Milestone: | M7 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Carl Wannheden
Hi Carl,
I can confirm that in the domain-model-example, the formatting-rule
-----
c.setLinewrap(1, 1, 2).around(f.getFeatureRule());
-----
matches
-----
Entity: 'entity' name=ID ('extends' superType=JvmTypeReference)? '{'
features+=Feature*
'}';
-----
even thought Entity.features is an empty list.
This shouldn't be the case because when Entity.features is empty the rule Feature is never called.
fixed in HEAD |