klorenz / atom-regex-railroad-diagrams

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

'\' in the diagram #20

Closed ilanbiala closed 9 years ago

ilanbiala commented 10 years ago

screen shot 2014-07-31 at 8 12 46 pm

ilanbiala commented 9 years ago

@klorenz any thoughts on how to do this?

ilanbiala commented 9 years ago

@klorenz still a bug in the latest version available.

ilanbiala commented 9 years ago

@klorenz does it have to do with these lines 120-122 in regex-to-railroad.coffee?

    when "literal"
      if node.escaped
        Terminal("\\"+node.body)
      else
        makeLiteral(node.body)

Is the extra slash needed?

ilanbiala commented 9 years ago

@klorenz any progress on this?