mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
injections(go): inject regex into some regexp functions
This commit is contained in:
parent
38845442b7
commit
779b4222a3
1 changed files with 12 additions and 0 deletions
|
|
@ -1 +1,13 @@
|
|||
(comment) @comment
|
||||
|
||||
(call_expression
|
||||
(selector_expression) @_function (#any-of? @_function
|
||||
"regexp.Match"
|
||||
"regexp.MatchReader"
|
||||
"regexp.MatchString"
|
||||
"regexp.Compile"
|
||||
"regexp.CompilePOSIX"
|
||||
"regexp.MustCompile"
|
||||
"regexp.MustCompilePOSIX")
|
||||
(argument_list
|
||||
. [(raw_string_literal) (interpreted_string_literal)] @regex (#offset! @regex 0 1 0 -1)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue