Bug 415035 - [formatter] error when formatting template expressions
Summary: [formatter] error when formatting template expressions
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.4.2   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 04:48 EDT by Moritz Eysholdt CLA
Modified: 2013-08-14 04:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2013-08-14 04:48:48 EDT
formatting 
------------------------
	def foo(String it) '''
			«true»«IF true»
				«it»()«ENDIF»
		'''
------------------------
leads to



org.eclipse.xtext.xbase.formatting.FormattableDocument  - lenght of text-edit can not be negative:
--------------------------------- document snippet ------------------------------

	}

	def foo(String it) '''
			«true»«IF true»
				«it»()«ENDIF»
		[[[!!]]]	'''
	
}
---------------------------------------------------------------------------------