Menu

#130 Update syntax highlighting

open
nobody
editor (62)
5
2003-05-10
2003-05-10
Anonymous
No

Well, some keywords are now accepted such as:

const blah = "SHIT!"
Abort(blah);

What version of JavaScript does sphere use? There are
more keywords accepted now... I think somebody
should update them!

-Dn7

Discussion

  • Brian Robb

    Brian Robb - 2003-05-10

    Logged In: YES
    user_id=387078

    Hmm, for me const, int, etc are highlighted as red.
    As a side note, declaring something const seems to make it
    so that it just doesn't change. So this:

    const test = "not changed";
    test = "changed";
    Abort(test);

    Aborts with "not changed", rather than giving an error
    because you tried to change test...

    But as far as I can tell the editor seems up to date.

     
  • Nobody/Anonymous

    Logged In: NO

    Well, I thought red told you 'reserved identifier', which consts
    isn't. Should be blue, it's a keyword!
    - Dn7

     

Log in to post a comment.

MongoDB Logo MongoDB