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.
NB: 6.1 Plugin: 2008-03-13-02-01-37 Steps: 1. create new project (or create new class and set it as main) 2. paste this source: --------------------------- import java.lang.System; class Foo { attribute x : Integer on replace = newV { System.out.println("x: =>{newV}={x}"); }; attribute y : Integer on replace { System.out.println("y: {y}"); }; attribute z : String = "Ralph" on replace { System.out.println("z: {z}"); }; } var n = 3; var f = Foo { x: 3, y: bind n+1 }; f.x = 4; f.x = 4; n = 10; class Foo2 { attribute x : Integer on replace oldValue { System.out.println("x: {oldValue} => {x}"); }; attribute y : Integer on replace oldValue { System.out.println("y: {oldValue} => {y}"); }; attribute z : String = "Bert" on replace oldValue = newValue { System.out.println("z: {oldValue} => {newValue}={z}"); }; } var n2 = 3; var f2 = Foo2 { x: 3, y: bind n2+1 }; f2.x = 4; f2.x = 4; n2 = 10; f2.z = "Zoey" --------------------------- Notice that after the first System.out.println: newV { System.out.println("x: =>{newV}={x}"); }; the editor becomes confused in its colorings. image attached.
Created attachment 58412 [details] image of editor colors
Increased priority. I've run into this scenario 5 more times which cycling throu 9 more tests. This quote configuration seems to be fairly common syntax.
Created attachment 58654 [details] SintaxHighlighting_ReferencePicture
Could you please, verify the attached SintaxHighlighting_ReferencePicture. Can we use it as a reference view for verification the Syntax Highlighting feature of the JavaFX Editor?
It looks good. It can be used for future comparison.
Fixed in the trunk.
Verified using build: Product Version: NetBeans IDE Dev (Build 200803191206) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Plugin: CB#112 (2008-03-19_19-05-59)