swift
80bb83a4 - [Parse] Lenient prefix `/` parsing

Commit
3 years ago
[Parse] Lenient prefix `/` parsing Treat a prefix operator containing `/` the same as the unapplied infix operator case, where we tentatively lex. This means that we bail if there is no closing `/` or the starting character is invalid. This leaves binary operator containing `/` in expression position as the last place where we know that we definitely have a regex literal.
Author
Parents
Loading