feat: add jq

This commit is contained in:
ObserverOfTime 2022-09-20 02:03:08 +03:00 committed by Christian Clason
parent f5c088771b
commit 8a261e32ec
5 changed files with 371 additions and 0 deletions

31
queries/jq/injections.scm Normal file
View file

@ -0,0 +1,31 @@
(comment) @comment
; test(val)
(query
((funcname) @_function
(#any-of? @_function
"test"
"match"
"capture"
"scan"
"split"
"splits"
"sub"
"gsub"))
(args . (query (string) @regex)))
; test(regex; flags)
(query
((funcname) @_function
(#any-of? @_function
"test"
"match"
"capture"
"scan"
"split"
"splits"
"sub"
"gsub"))
(args . (args
(query (string) @regex))))