Bug 405184 - Bad indentation for first indented comment
Summary: Bad indentation for first indented comment
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2013-04-08 11:59 EDT by Ed Willink CLA
Modified: 2020-07-22 04:02 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 Ed Willink CLA 2013-04-08 11:59:43 EDT
The following Xtext grammar

grammar temp.Temp

import "http://www.eclipse.org/emf/2002/Ecore" as ecore

Top:
        /*
	 * first comment
	 */
	'xx'
	/*
	 * second comment
	 */
;

when auto-formatted, loses the indentation on the first line of the first comment.
Comment 1 Karsten Thoms CLA 2016-08-16 05:51:04 EDT
Xtext still uses the old formatter, this should be changed also.
Comment 2 Tamas Miklossy CLA 2020-05-11 13:56:24 EDT
I created an issue https://github.com/eclipse/xtext-core/issues/1489 to track the effort for the migration of the Xtext formatter to the formatter2 API.