mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
feat(linter)!: parse and display syntax errors for regular expressions (#5214)
cc @leaysgur shipping to production! This is marked as breaking change because there may be false positives.
This commit is contained in:
parent
2fbc283e03
commit
5946748ca6
1 changed files with 1 additions and 0 deletions
|
|
@ -256,6 +256,7 @@ impl Runtime {
|
||||||
) -> Vec<Message<'a>> {
|
) -> Vec<Message<'a>> {
|
||||||
let ret = Parser::new(allocator, source_text, source_type)
|
let ret = Parser::new(allocator, source_text, source_type)
|
||||||
.with_options(ParseOptions {
|
.with_options(ParseOptions {
|
||||||
|
parse_regular_expression: true,
|
||||||
allow_return_outside_function: true,
|
allow_return_outside_function: true,
|
||||||
..ParseOptions::default()
|
..ParseOptions::default()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue