klorenz / atom-regex-railroad-diagrams

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

add greedy comments #38

Closed hayes closed 9 years ago

hayes commented 9 years ago

I have never really written coffee script, sorry if my style is off. This will add a 'greedy' comment to the greedy quantifier tracks. It would be fairly trivial to reverse it so it shows a comment on non-greedy tracks (or both). Not sure whats best, but it would be extremely helpful to differential the two.

this fixes part of #23 screen shot 2015-04-07 at 11 21 25 pm

screen shot 2015-04-07 at 11 17 41 pm

hayes commented 9 years ago

seems like the term for non greedy would be lazy if it would be better to show text in only that case (or both)