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.

Bug 130192 - quotes confuse editor
Summary: quotes confuse editor
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-14 20:05 UTC by Lark Fitzgerald
Modified: 2008-03-19 20:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image of editor colors (210.50 KB, image/jpeg)
2008-03-14 20:06 UTC, Lark Fitzgerald
Details
SintaxHighlighting_ReferencePicture (79.65 KB, image/jpeg)
2008-03-19 13:30 UTC, Victor Vasilyev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-03-14 20:05:23 UTC
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.
Comment 1 Lark Fitzgerald 2008-03-14 20:06:07 UTC
Created attachment 58412 [details]
image of editor colors
Comment 2 Lark Fitzgerald 2008-03-14 20:19:42 UTC
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.
Comment 3 Victor Vasilyev 2008-03-19 13:30:49 UTC
Created attachment 58654 [details]
SintaxHighlighting_ReferencePicture
Comment 4 Victor Vasilyev 2008-03-19 13:33:35 UTC
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?
Comment 5 Lark Fitzgerald 2008-03-19 15:53:41 UTC
It looks good. It can be used for future comparison.
Comment 6 Andrey Yamkovoy 2008-03-19 18:44:59 UTC
Fixed in the trunk.
Comment 7 Lark Fitzgerald 2008-03-19 20:00:41 UTC
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)