JS: Extract RegExp ASTs from string literals

This commit is contained in:
Asger F
2019-10-14 12:35:34 +01:00
parent 0cf191f70d
commit 0e1246c0e5
4 changed files with 18 additions and 4 deletions

View File

@@ -815,7 +815,7 @@ regexpterm (unique int id: @regexpterm,
int idx: int ref,
varchar(900) tostring: string ref);
@regexpparent = @regexpterm | @regexpliteral;
@regexpparent = @regexpterm | @regexpliteral | @stringliteral;
case @regexpterm.kind of
0 = @regexp_alt