Bug 527036 - Oxygen: Formatting simple Javascript statement fails (Ctrl-Shift-f)
Summary: Oxygen: Formatting simple Javascript statement fails (Ctrl-Shift-f)
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-09 03:50 EST by Olaf Sylvester CLA
Modified: 2017-12-07 13:07 EST (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 Olaf Sylvester CLA 2017-11-09 03:50:53 EST
Hi Developers of javascript formatting,

I've notuced a problem in formatting tool für javascript.
Some expressions in a javsscript file causes javascript formatter to format nothing.
E.g.:
Test.prototype.test = function(result) {
	return Math.floor((result/ 1000) * 100.0) / 100;
};

If I remove / 100, everthing ist ok, the whole file will be fortatted by Ctrl-Shift-f
Test.prototype.test = function(result) {
	return Math.floor((result/ 1000) * 100.0);
};


-- Configuration Details --
Product: Eclipse 4.7.1.20171005-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.platform 4.7.1.v20171009-0410
Comment 1 Olaf Sylvester CLA 2017-11-09 04:02:44 EST
See also Bug 357829 and comment 21:  https://bugs.eclipse.org/bugs/show_bug.cgi?id=357829#c21