klorenz / atom-regex-railroad-diagrams

display regex as railroad diagram, if cursor moves to it
MIT License
250 stars 31 forks source link

Balks on ^ in certain situations #51

Closed gilbox closed 9 years ago

gilbox commented 9 years ago

First of all, really cool plugin. Thanks!

I noticed this fails:

  var a =  /^foo/;

... it complains about the ^

image

but this works:

  var a =  (/^foo/);

and so does this:

  /^foo/
petey commented 9 years ago

I'm hitting this now too.

biji commented 9 years ago

also happen in PHP source:

        if (! preg_match('/^[RK]_.{16}\.pdf$/', $name)) {

regex

klorenz commented 9 years ago

fixed in 0.9.1