Community
Participate
Working Groups
Build ID: Version: 3.4.2 Build id: M20090211-1700 Steps To Reproduce: The following line var a = 1.2 / 3 + 4.5 / 6; shows an error "Syntax error on token (Invalid Regular Expression Options), no accurate correction available". This is not expected, since it is a standard mathematical term, not a Regular expression. I believe it is triggered by the combination of two slashes (/) in one line (which happens to be the division operator) and at least one dot (.) (for floating point numbers) before the first / sign. More information: JSDT 1.0.4
Sorry, changed "component" from "wst.javascript" to "wst.jsdt".
Created attachment 133599 [details] Fixes the scanner in the checkIfDivide method.
This patch should go in 3.0.5 and 3.1.
Approved. Also added TokenNameLongLiteral to 3.1 branch.