injections(query): add gsub pattern (#4897)

This commit is contained in:
Pham Huy Hoang 2023-06-03 18:21:17 +09:00 committed by Christian Clason
parent efe06e3057
commit 39f07cd375

View file

@ -12,5 +12,12 @@
(#set! injection.language "luap")
(#offset! @injection.content 0 1 0 -1))
((predicate
name: (identifier) @_name
parameters: (parameters (string) @injection.content . (string) .))
(#any-of? @_name "gsub" "not-gsub")
(#set! injection.language "luap")
(#offset! @injection.content 0 1 0 -1))
((comment) @injection.content
(#set! injection.language "comment"))