feat(ts): add jq

This commit is contained in:
2026-05-29 11:29:45 +02:00
parent 482ed70cf6
commit 3e5cef568a
4 changed files with 229 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
((comment) @injection.content
(#set! injection.language "comment"))
; test(val)
(query
((funcname) @_function
(#any-of? @_function "test" "match" "capture" "scan" "split" "splits" "sub" "gsub"))
(args
.
(query
(string) @injection.content
(#set! injection.language "regex"))))
; test(regex; flags)
(query
((funcname) @_function
(#any-of? @_function "test" "match" "capture" "scan" "split" "splits" "sub" "gsub"))
(args
.
(args
(query
(string) @injection.content
(#set! injection.language "regex")))))