Files
tree-sitter-nix-shell/corpus/payload.txt

40 lines
617 B
Plaintext

==================
nix-shell with a bash payload
==================
#!/usr/bin/env nix-shell
#!nix-shell -i bash
echo "hello, world!"
---
(source_file
(first_line)
(next_line
(annotation_line
(nix_shell_args
(interpreter
(sh_arg)))))
(next_line))
==================
nix-shell with interspersed payload
==================
#!/usr/bin/env nix-shell
echo hello
echo again
#!nix-shell -i bash
echo everybody
---
(source_file
(first_line)
(next_line)
(next_line)
(next_line
(annotation_line
(nix_shell_args
(interpreter
(sh_arg)))))
(next_line))