mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -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
|
(comment) @comment
|
||||||
|
|
||||||
|
(apply_expression
|
||||||
|
function: (_) @_func
|
||||||
|
argument: [
|
||||||
|
(string_expression (string_fragment) @regex)
|
||||||
|
(indented_string_expression (string_fragment) @regex)
|
||||||
|
]
|
||||||
|
(#match? @_func "(^|\\.)match$"))
|
||||||
|
|
||||||
(binding
|
(binding
|
||||||
attrpath: (attrpath (identifier) @_path)
|
attrpath: (attrpath (identifier) @_path)
|
||||||
expression: [
|
expression: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue