Bug 417484 - [formatter] don't format regions with syntax errors
Summary: [formatter] don't format regions with syntax errors
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: triaged
Depends on:
Blocks:
 
Reported: 2013-09-18 04:40 EDT by Moritz Eysholdt CLA
Modified: 2017-08-17 06:40 EDT (History)
1 user (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 2013-09-18 04:40:21 EDT
example:

-------
switch foo {
default super.getScope(context, reference)
}
-------
(not the missing colon)

is being formatted to 

--------
switch foo {
defaultsuper.getScope(context, reference)
}
--------
the is even more broken than it was before. The formatter should just leave the whitespace between "default" and "super".
Comment 1 Moritz Eysholdt CLA 2013-09-18 04:40:47 EDT
(not the missing colon) -> (note the missing colon)