summaryrefslogtreecommitdiff
path: root/queries/lua/injections.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/lua/injections.scm')
-rw-r--r--queries/lua/injections.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/queries/lua/injections.scm b/queries/lua/injections.scm
index 65b8b304..fa05c40a 100644
--- a/queries/lua/injections.scm
+++ b/queries/lua/injections.scm
@@ -8,7 +8,7 @@
)
(#eq? @_cdef_identifier "cdef")
- (#match? @c "^[\"']")
+ (#lua-match? @c "^[\"']")
(#offset! @c 0 1 0 -1)
)
@@ -21,7 +21,7 @@
)
(#eq? @_cdef_identifier "cdef")
- (#match? @c "^\\[\\[")
+ (#lua-match? @c "^%[%[")
(#offset! @c 0 2 0 -2)
)
@@ -34,7 +34,7 @@
)
(#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_exec")
- (#match? @vim "^[\"']")
+ (#lua-match? @vim "^[\"']")
(#offset! @vim 0 1 0 -1)
)
@@ -46,7 +46,7 @@
)
(#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_exec")
- (#match? @vim "^\\[\\[")
+ (#lua-match? @vim "^%[%[")
(#offset! @vim 0 2 0 -2)
)