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.
Syntax highlighter correctly 'bolds' the name of a property, if it detects it's a function (and not otherwise): x = { onChange: function(params) { ... } }; It incorrectly bolds it when the name of the property is quoted: x = { 'onChange': function(params) { ... } }; It bolds the correct number of characters, but starts at the first quote mark (offset left 1 character), which leaves the last character of the name, and the ending quote mark, un-bolded. Detected in currently available NetBeans IDE 6.5 (Build 200811100001), editing a .js file.
The problem is in the JS parser. It returns wrong offsets for the method names, which are in a quote.
Fixed in web-main. changeset: 141895:4afdff1b76d1
Integrated into 'main-golden', will be available in build *200908210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4afdff1b76d1 User: Petr Pisl <ppisl@netbeans.org> Log: issue #159083 - off-by-one syntax highlighting of function() properties