mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
31 lines
586 B
Scheme
31 lines
586 B
Scheme
(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))))
|