| Summary: | Invalid Javascript used in Syntax Coloring dialogue | ||
|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Jeremy Walker <eclipsebugs.machineghost> |
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | Chris Jaun <cmjaun> |
| Severity: | trivial | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 3.5.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
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