Menu

#2253 JavaScript and regular expressions

closed-fixed
nobody
5
2008-03-01
2004-10-07
scragz
No

The JS mode doesn't take notice of the shorthand
regular expression creation syntax as below:

re = /foo(\w*)/;

It highlights "foo" like it's a function call. The
whole RE from the beginning forward slash to the end
one should be highlighted some way, possibly as a
literal, or it would be really nice to have a regular
expression mode that was included to handle this.

Discussion

  • Matthieu Casanova

    • status: open --> closed-fixed
     
  • Matthieu Casanova

    Logged In: YES
    user_id=285591
    Originator: NO

    fixed in svn

     

Log in to post a comment.

MongoDB Logo MongoDB