injections(nix): add injections for builtins.match

This commit is contained in:
figsoda 2022-11-23 14:14:31 -05:00 committed by Stephan Seitz
parent 07674600c9
commit ace038e1e7

View file

@ -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: [