How to parse ECMA regex using Lady Deirdre?

⚓ Rust    📅 2025-08-19    👤 surdeus    👁️ 5      

surdeus

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

Read full topic

🏷️ Rust_feed