Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369274 - Invalid Javascript used in Syntax Coloring dialogue
Summary: Invalid Javascript used in Syntax Coloring dialogue
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: 3.5.1   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 14:01 EST by Jeremy Walker CLA
Modified: 2013-07-19 11:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Walker CLA 2012-01-20 14:01:58 EST
Build Identifier: 20110916-0149

When you go to edit your syntax colors (under Preferences>JavaScript>Editor>Syntax Coloring) you are presented with this preview JS:

function foo() {
    /* This comment may span multiple lines. */
    var var1 = new Object();
    var obj = [ make: "Toyota", model: "Celica", year: 2000 ];
    var s = "abc123";
    clear(var1);
}

However, one of those lines is completely invalid:
    var obj = [ make: "Toyota", model: "Celica", year: 2000 ];
It should be:
    var obj = { make: "Toyota", model: "Celica", year: 2000 };
(well, really it should be "{make:" with no space, as no one I've ever seen puts a space there ... but that's beside the point).

Anyhow, just thought you might want to fix that.

Reproducible: Always

Steps to Reproduce:
1. Navigate to Preferences>JavaScript>Editor>Syntax Coloring