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.
Product Version = NetBeans IDE Dev (Build 200911171401) (#d7b3ad6247f5) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Format the code ----------------------------------------- function r(str:String) { str.replace(" ", " "); } ----------------------------------------- The result is: ----------------------------------------- function r(str: String) { str. replace(" ", " "); } -----------------------------------------
fixed http://hg.netbeans.org/javafx/rev/0a46ffba496b By the way this is very interesting bug. Unlike Java in JavaFX there are non-reserved keywords like "replace" which can be identifiers as well. Please create issue for semantic highlighting: all non-reserved keywords which are identifiers incorrectly highlighted. === // --------------------- // Non-reserved keywords // // Some tokens are returned by the lexer as keywords for the grammar // but are not reserved words in the language. These can be used as // identifiers and are basically the set of keywords that cannot // possibly start a statement/expression, such as 'to' but not those // that are not sensible to allow as identifiers, such as 'true'. // keyword : FIRST | IN | INIT | INTO | INVERSE | LAST | ON | POSTINIT | REPLACE | STEP | TRIGGER | TWEEN | WHERE | WITH | INVALIDATE ; === openjfx-compiler~soma-master\src\share\classes\com\sun\tools\javafx\antlr\v4Parser.g
Created issue 177721 Function name that is treated as keyword in JavaFX is not properly highlighted
verified in NetBeans-JavaFX-Soma: #62
Fixed in release68_fixes http://hg.netbeans.org/javafx/rev/750b7c473828
Verified in NB 6.8 patch1 2010-01-25_21-27-59