slevithan / regex-colorizer

Highlighter for JavaScript regex syntax
https://slevithan.github.io/regex-colorizer/demo/
MIT License
174 stars 23 forks source link

Highlight regex comments #5

Open DanielOaks opened 8 years ago

DanielOaks commented 8 years ago

It would be nice to be able to highlight regex comments explicitly with this, since I'm using this lib to highlight a regex that I split into parts, and indent and comment to explain. Something like the # character perhaps.

Thanks for the awesome library! I might even just do it myself and send a PR, we'll see :)

slevithan commented 6 months ago

PRs welcome. It could work by passing flag x, since there's an x flag proposal for future versions of JavaScript.