diff --git a/queries/query/injections.scm b/queries/query/injections.scm index 95ce2978f..c4b877d0b 100644 --- a/queries/query/injections.scm +++ b/queries/query/injections.scm @@ -1,6 +1,13 @@ ((predicate name: (identifier) @_name parameters: (parameters (string) @regex)) - (#match? @_name "^#?(not-)?(match|vim-match|lua-match)$")) + (#match? @_name "^#?(not-)?(match|vim-match)$") + (#offset! @regex 0 1 0 -1)) + +((predicate + name: (identifier) @_name + parameters: (parameters (string) @luap)) + (#match? @_name "^#?(not-)?lua-match$") + (#offset! @luap 0 1 0 -1)) (comment) @comment