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

Bug 345859

Summary: [Formatter] Indentation problem for optional token
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: Xtext BacklogAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: btickets, moritz.eysholdt
Version: 2.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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