mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
fix(rust): inject regex into RegexBuilder instead of ByteRegexBuilder
This commit is contained in:
parent
f0c17dc859
commit
ffd284c470
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@
|
||||||
(call_expression
|
(call_expression
|
||||||
function: (scoped_identifier
|
function: (scoped_identifier
|
||||||
path: (identifier) @_regex
|
path: (identifier) @_regex
|
||||||
(#any-of? @_regex "Regex" "ByteRegexBuilder")
|
(#any-of? @_regex "Regex" "RegexBuilder")
|
||||||
name: (identifier) @_new
|
name: (identifier) @_new
|
||||||
(#eq? @_new "new"))
|
(#eq? @_new "new"))
|
||||||
arguments: (arguments
|
arguments: (arguments
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
function: (scoped_identifier
|
function: (scoped_identifier
|
||||||
path: (scoped_identifier
|
path: (scoped_identifier
|
||||||
(identifier) @_regex
|
(identifier) @_regex
|
||||||
(#any-of? @_regex "Regex" "ByteRegexBuilder") .)
|
(#any-of? @_regex "Regex" "RegexBuilder") .)
|
||||||
name: (identifier) @_new
|
name: (identifier) @_new
|
||||||
(#eq? @_new "new"))
|
(#eq? @_new "new"))
|
||||||
arguments: (arguments
|
arguments: (arguments
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue