This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Sometimes the JS parser will incorrectly identify an "=" as a part of a variable. Double clicking (to select the variable) will also select the equals sign.
Created attachment 61228 [details] After double-clicking the variable AND the equals sign is selected
Reproducible in case there is not a space between the var-name and '=', .java treats this case correctly.
I can't reproduce this with the current dev builds. Perhaps it's fixed by related bug fixes recently? If not, can you provide a testcase? I tried typing in the code I saw in the screenshot but that fragment worked correctly for me.
The new patches DID NOT fix the bug. To reproduce it create a WebProject and a JS file, then type: var test=3; double click on "test" and you select "test=3" instead of the desired result: "test" Perhaps this is a Mac OS specific bug?
Sorry, I misread the bug earlier! I was fixing another bug (136162) related to the "selection", but of course I was looking at mark occurrences, not the actual identifier-selection code which runs on double click. Whoops! Anyway, this is fixed now (as of an integration saturday). It was included in changeset bdfe4bba83c1 (which is otherwise unrelated to this fix; only the modifications to JsUtils.java are related.)
Verified.