mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
injections(nix): add injections for builtins.match
This commit is contained in:
parent
07674600c9
commit
ace038e1e7
1 changed files with 8 additions and 0 deletions
|
|
@ -1,5 +1,13 @@
|
|||
(comment) @comment
|
||||
|
||||
(apply_expression
|
||||
function: (_) @_func
|
||||
argument: [
|
||||
(string_expression (string_fragment) @regex)
|
||||
(indented_string_expression (string_fragment) @regex)
|
||||
]
|
||||
(#match? @_func "(^|\\.)match$"))
|
||||
|
||||
(binding
|
||||
attrpath: (attrpath (identifier) @_path)
|
||||
expression: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue