mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
* fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
23 lines
570 B
Scheme
23 lines
570 B
Scheme
((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")))))
|