Files
tree-sitter-nix-shell/corpus/annotation.txt
Colin c9d79b0734 rework grammar to be friendly to injections
want to later support the case of multiple nix-shell directives in injection
2023-07-05 00:01:38 +00:00

86 lines
1.2 KiB
Plaintext

==================
empty nix-shell
==================
#!nix-shell
---
(source_file
(nix_shell_directive))
==================
nix-shell no interpreter
==================
#!nix-shell -p gnused
---
(source_file
(nix_shell_directive))
==================
minimal nix-shell invocation with interpreter
==================
#!nix-shell -i bash
---
(source_file
(nix_shell_directive
(interpreter)))
==================
whitespace in nix-shell
==================
#! nix-shell -i bash
---
(source_file
(nix_shell_directive
(interpreter)))
==================
non-interpreter argument
==================
#!nix-shell -i bash -p gnused
---
(source_file
(nix_shell_directive
(interpreter)))
==================
non-interpreter flags
==================
#!nix-shell -i bash -p gnused awk
---
(source_file
(nix_shell_directive
(interpreter)))
==================
quoted arguments
==================
#!nix-shell -i bash arg\ one 'arg"Two' "'argThree"
---
(source_file
(nix_shell_directive
(interpreter)))
==================
order-independent
==================
#!nix-shell -p gnused -i bash
---
(source_file
(nix_shell_directive
(interpreter)))