mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
fix: allow the regex v flag
This commit is contained in:
parent
2e56e94648
commit
17e50c4c57
|
|
@ -166,9 +166,12 @@ fn parse_rule(json: RuleJSON) -> Rule {
|
|||
f.chars()
|
||||
.filter(|c| {
|
||||
if *c == 'i' {
|
||||
*c != 'u' // silently ignore unicode flag
|
||||
true
|
||||
} else {
|
||||
eprintln!("Warning: unsupported flag {c}");
|
||||
// silently ignore unicode flags
|
||||
if *c != 'u' && *c != 'v' {
|
||||
eprintln!("Warning: unsupported flag {c}");
|
||||
}
|
||||
false
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue