Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318883 - [Formatter/Matcher] after(rule) not matched in one case
Summary: [Formatter/Matcher] after(rule) not matched in one case
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 329150 334187 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-05 08:05 EDT by Moritz Eysholdt CLA
Modified: 2011-04-04 12:26 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2010-07-05 08:05:18 EDT
For the following grammar

--------
Model:
	section+=Section*;

Section:
	'[' name=ID ']' (params+=Param)*;

Param:
	name=ID '=' foo=INT; 
--------

the formatting instruction

---------
c.setLinewrap().after(f.getSectionRule());
---------

has no impact.
Comment 1 Moritz Eysholdt CLA 2011-02-10 04:31:10 EST
*** Bug 329150 has been marked as a duplicate of this bug. ***
Comment 2 Moritz Eysholdt CLA 2011-02-10 04:33:33 EST
*** Bug 334187 has been marked as a duplicate of this bug. ***
Comment 3 Laurent CLA 2011-02-14 06:08:13 EST
Is there some work around that do not include the modification of the grammar ?
Comment 4 Moritz Eysholdt CLA 2011-02-16 06:32:01 EST
You can always try to associate the formatting rules with the surrounding grammar elements.
Comment 5 Moritz Eysholdt CLA 2011-04-04 12:26:36 EDT
I can confirm that this issue has been solved with one of the recent fixes (which are bug 341647, bug 339997 and bug 341797)