mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-12 02:23:39 +08:00
32 lines
586 B
Scheme
32 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))))
|