Unverified Commit 0734d9f3 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4512 from lopopolo/patch-1

Support parsing a Regexp literal with 'o' option
parents e790fb51 eeb7d3a0
...@@ -4526,6 +4526,7 @@ parse_string(parser_state *p) ...@@ -4526,6 +4526,7 @@ parse_string(parser_state *p)
case 'm': f |= 4; break; case 'm': f |= 4; break;
case 'u': f |= 16; break; case 'u': f |= 16; break;
case 'n': f |= 32; break; case 'n': f |= 32; break;
case 'o': break;
default: tokadd(p, re_opt); break; default: tokadd(p, re_opt); break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment