Author Topic: minor bug with syntax highlighting and javascript regular expressions  (Read 2481 times)

greggman

  • Senior Community Member
  • Posts: 280
  • Hero Points: 14
I have this code in JavaScript

Code: [Select]
      var m = /^\/([^/]+)\/([^/]+)\//.exec(someString);

It's valid JavaScript but slickedit thinks the // at the end is a comment

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Yeah, it looks like v19 doesn't quite handle it correctly either, even though I thought I had fixed that lexer problem.  Thanks for the report, I'll take a look at it.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: minor bug with syntax highlighting and javascript regular expressions
« Reply #2 on: September 16, 2014, 03:38:19 PM »
This is fixed, and will be in the v19 beta 6 drop.