mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
injections(query): add gsub pattern (#4897)
This commit is contained in:
parent
efe06e3057
commit
39f07cd375
1 changed files with 7 additions and 0 deletions
|
|
@ -12,5 +12,12 @@
|
||||||
(#set! injection.language "luap")
|
(#set! injection.language "luap")
|
||||||
(#offset! @injection.content 0 1 0 -1))
|
(#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
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue