Open TheLastZombie opened 3 years ago
Describe the issue With the Babel JavaScript extension enabled, regular expressions that utilize the s / dotAll flag are not highlighted as such.
s
dotAll
Sample Code to Reproduce
RegExp(/\n\//) // without flags, displayed correctly RegExp(/\n\//g) // valid flag other than s, displayed correctly RegExp(/\n\//a) // invalid flag, displayed correctly (same as without extension) RegExp(/\n\//s) // dotAll flag, displayed incorrectly
Screenshot of Current Behavior
Screenshot of Expected Behavior
Describe the issue With the Babel JavaScript extension enabled, regular expressions that utilize the
s
/dotAll
flag are not highlighted as such.Sample Code to Reproduce
Screenshot of Current Behavior![image](https://user-images.githubusercontent.com/8181990/95862439-3827fc00-0d63-11eb-9982-493db8e96b60.png)
Screenshot of Expected Behavior![image](https://user-images.githubusercontent.com/8181990/95862469-4118cd80-0d63-11eb-8e83-7698e0edc031.png)