Bug 500614 - formatter completely fails if line contains more than one division operator (slash)
Summary: formatter completely fails if line contains more than one division operator (...
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.8.0   Edit
Hardware: PC Windows 7
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-31 17:06 EDT by tomo CLA
Modified: 2018-02-07 10:27 EST (History)
1 user (show)

See Also:


Attachments
file containing javascript triggering the bug (829 bytes, text/js)
2016-08-31 17:06 EDT, tomo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomo CLA 2016-08-31 17:06:39 EDT
Created attachment 263873 [details]
file containing javascript triggering the bug

javascript formatter fails silently (not applying any expected format at all)
 if a javascript file contains a line with more than one division operator
 like

 var thatwilltrigger_theformatterbug = numa / numb + numb / numa; 

 see testcase attached.
Comment 1 Martin Kattner CLA 2018-02-07 10:27:43 EST
Another example:

Works: y = (b * a);
Not working: y = (b /  a);