aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormay <m4rch3n1ng@gmail.com>2025-03-08 20:06:05 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-03-08 20:13:17 +0100
commitffd284c4706d91c0d94916995f584b22ce89afcb (patch)
tree4ea314a0e4a8a93340fbf50f21fcfe707e4e4a1d
parentfix(rust): inject html and json in macro invocations (#7715) (diff)
downloadnvim-treesitter-ffd284c4706d91c0d94916995f584b22ce89afcb.tar
nvim-treesitter-ffd284c4706d91c0d94916995f584b22ce89afcb.tar.gz
nvim-treesitter-ffd284c4706d91c0d94916995f584b22ce89afcb.tar.bz2
nvim-treesitter-ffd284c4706d91c0d94916995f584b22ce89afcb.tar.lz
nvim-treesitter-ffd284c4706d91c0d94916995f584b22ce89afcb.tar.xz
nvim-treesitter-ffd284c4706d91c0d94916995f584b22ce89afcb.tar.zst
nvim-treesitter-ffd284c4706d91c0d94916995f584b22ce89afcb.zip
fix(rust): inject regex into RegexBuilder instead of ByteRegexBuilder
-rw-r--r--queries/rust/injections.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/rust/injections.scm b/queries/rust/injections.scm
index d6d8d46ab..7bffd1fc9 100644
--- a/queries/rust/injections.scm
+++ b/queries/rust/injections.scm
@@ -39,7 +39,7 @@
(call_expression
function: (scoped_identifier
path: (identifier) @_regex
- (#any-of? @_regex "Regex" "ByteRegexBuilder")
+ (#any-of? @_regex "Regex" "RegexBuilder")
name: (identifier) @_new
(#eq? @_new "new"))
arguments: (arguments
@@ -51,7 +51,7 @@
function: (scoped_identifier
path: (scoped_identifier
(identifier) @_regex
- (#any-of? @_regex "Regex" "ByteRegexBuilder") .)
+ (#any-of? @_regex "Regex" "RegexBuilder") .)
name: (identifier) @_new
(#eq? @_new "new"))
arguments: (arguments