Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: How to parse ECMA regex using Lady Deirdre?
For scanning ECMA regexes like /(?:)/
basically the /
and /=
punctuators stay in place, but, at an expression start, these need to be manually overriden so that a regex is parsed. (Similiar happens with XML literals.)
However, looks like LexisSession
isn't accessible from SyntaxSession
, which I'd need for scanning regexes on the fly.
1 post - 1 participant
🏷️ Rust_feed