aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/query/injections.scm18
1 files changed, 9 insertions, 9 deletions
diff --git a/queries/query/injections.scm b/queries/query/injections.scm
index c6a74f82f..759f9b2e2 100644
--- a/queries/query/injections.scm
+++ b/queries/query/injections.scm
@@ -1,28 +1,28 @@
((predicate
name: (identifier) @_name
parameters: (parameters
- (string) @injection.content))
+ (string
+ (string_content) @injection.content)))
(#any-of? @_name "match" "not-match" "any-match" "vim-match" "not-vim-match" "any-vim-match")
- (#set! injection.language "regex")
- (#offset! @injection.content 0 1 0 -1))
+ (#set! injection.language "regex"))
((predicate
name: (identifier) @_name
parameters: (parameters
- (string) @injection.content))
+ (string
+ (string_content) @injection.content)))
(#any-of? @_name "lua-match" "not-lua-match" "any-lua-match")
- (#set! injection.language "luap")
- (#offset! @injection.content 0 1 0 -1))
+ (#set! injection.language "luap"))
((predicate
name: (identifier) @_name
parameters: (parameters
- (string) @injection.content
+ (string
+ (string_content) @injection.content)
.
(string) .))
(#any-of? @_name "gsub" "not-gsub")
- (#set! injection.language "luap")
- (#offset! @injection.content 0 1 0 -1))
+ (#set! injection.language "luap"))
((comment) @injection.content
(#set! injection.language "comment"))