Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345859 - [Formatter] Indentation problem for optional token
Summary: [Formatter] Indentation problem for optional token
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext Backlog (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 17:10 EDT by Ed Willink CLA
Modified: 2016-07-21 05:16 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2011-05-15 17:10:10 EDT
An indentation rule such as

 c.setIndentation(a.getColonKeyword_3_0(), a.getSemicolonKeyword_4());

malfunctions if the colon is optional and the semicolon is not. The semicolon reduces the indentation depth even though no colon was present to increase it.
Comment 1 Moritz Eysholdt CLA 2016-07-21 05:16:02 EDT
won't fix because it affects the old formatter infrastructure