aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
diff options
context:
space:
mode:
Diffstat (limited to 'queries/lua')
-rw-r--r--queries/lua/highlights.scm2
-rw-r--r--queries/lua/injections.scm8
2 files changed, 5 insertions, 5 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index 842ed64da..2c7291b9f 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -116,7 +116,7 @@
(nil) @constant.builtin
(spread) @constant ;; "..."
((identifier) @constant
- (#match? @constant "^[A-Z][A-Z_0-9]*$"))
+ (#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
;; Functions
(function [(function_name) (identifier)] @function)
diff --git a/queries/lua/injections.scm b/queries/lua/injections.scm
index 65b8b304b..fa05c40a7 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)
)