2021-02-06 17:57:01 -05:00
|
|
|
((predicate
|
|
|
|
|
name: (identifier) @_name
|
2023-05-03 19:07:59 +09:00
|
|
|
parameters: (parameters (string) @injection.content))
|
2023-08-23 14:09:30 +03:00
|
|
|
(#any-of? @_name "match" "not-match" "vim-match" "not-vim-match")
|
2023-05-03 19:07:59 +09:00
|
|
|
(#set! injection.language "regex")
|
|
|
|
|
(#offset! @injection.content 0 1 0 -1))
|
2023-03-03 05:36:23 -05:00
|
|
|
|
|
|
|
|
((predicate
|
|
|
|
|
name: (identifier) @_name
|
2023-05-03 19:07:59 +09:00
|
|
|
parameters: (parameters (string) @injection.content))
|
2023-08-23 14:09:30 +03:00
|
|
|
(#any-of? @_name "lua-match" "not-lua-match")
|
2023-05-03 19:07:59 +09:00
|
|
|
(#set! injection.language "luap")
|
|
|
|
|
(#offset! @injection.content 0 1 0 -1))
|
2021-03-12 11:21:46 -05:00
|
|
|
|
2023-06-03 18:21:17 +09:00
|
|
|
((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))
|
|
|
|
|
|
2023-05-03 19:07:59 +09:00
|
|
|
((comment) @injection.content
|
|
|
|
|
(#set! injection.language "comment"))
|