Closed kmdavis closed 9 years ago
This is also true in other languages where you can use different surrounding delimiters for your regexes, e.g. Ruby's %r{} syntax (or perl).
Looking into it a little deeper. Ruby, at least, defines punctuation.section.regexp.begin (and corresponding end). If these scopes are in the string.regex scope, they should be removed and treat the rest as the content of the reggae, allowing slashes if the punctuation was not slashes.
@lordjavac ty for the syntax scope hint, I will make use of this.
done.
If you have a heregex (a coffeescript feature that combines a heredoc with a regex) like
///asdf/1234///g
it will choke on the embedded /