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.
This syntax becomes incorrectly colored in the editor: self[1..4] (the 2 characters after "self" becomes boldface)
The editor highlights all method calls without receivers in bold. This helps disambiguate the local variable reference foo from the method call foo (they can otherwise only be told apart from inspecting the scope and seeing if foo is defined elsewhere). In any case, in self[1..4] there is a method call -- the method "[]". The method call starts at the character "[", so the semantic highlighter is blindly highlighting the first 2 characters starting at [. The scheme for obtaining the editor offsets obviously breaks down for a method like this.
Still valid.
Fixed in a0c8505d1a2b. The fix isn't too elegant, just handles this particular case (i.e. "[]"). Operators as method names are already handled in somewhere unknown place, this would need to be handled together with those.