Files
tree-sitter-nix-shell/corpus/shebang.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

64 lines
835 B
Plaintext

==================
nix-shell shebang without any interpreter option
==================
#!/usr/bin/env nix-shell
---
(source_file)
==================
nix-shell shebang whitespace
==================
#! /usr/bin/env nix-shell
---
(source_file)
==================
nix-shell shebang tab
==================
#! /usr/bin/env nix-shell
---
(source_file)
==================
nix-shell shebang tabs and spaces
==================
#! /usr/bin/env nix-shell
---
(source_file)
==================
nix-shell shebang via relative env
==================
#!env nix-shell
---
(source_file)
==================
nix-shell shebang via /bin/env
==================
#!/bin/env nix-shell
---
(source_file)
==================
nix-shell multiple shebangs
==================
#!/usr/bin/env nix-shell
#!/usr/bin/env nix-shell
---
(source_file)