JS syntax highlights "require" in unfortunate circumstances

RESOLVED INVALID

Status

Skywriter
Syntax Highlighting
RESOLVED INVALID
7 years ago
7 years ago

People

(Reporter: Parasyte, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20101020 Firefox-4.0/4.0b8pre
Build Identifier: 

Using Skywriter from the bespinclient repo, the JS syntax highlighter styles this example incorrectly:

> require("foo");
> var requires_testing = true;

The first line looks correct.
The second line highlights the word "require" within the "requires_testing" variable name -> Bug.

See attached patch for a simple workaround.

Reproducible: Always
(Reporter)

Comment 1

7 years ago
Created attachment 485424 [details] [diff] [review]
Example fix

Comment 2

7 years ago
ACETRANSITION

The Skywriter project has merged with Ajax.org's Ace project (the full server part of which is their Cloud9 IDE project). Background on the change is here:

http://mozillalabs.com/skywriter/2011/01/18/mozilla-skywriter-has-been-merged-into-ace/

The bugs in the Skywriter product are not necessarily relevant for Ace and quite a bit of code has changed. For that reason, I'm closing all of these bugs. Problems that you have with Ace should be filed in the Ace issue tracker at GitHub:

https://github.com/ajaxorg/ace/issues
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.