minimal working grammar
This commit is contained in:
14
corpus/shebang_only.txt
Normal file
14
corpus/shebang_only.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
==================
|
||||
nix-shell shebang without any interpreter option
|
||||
==================
|
||||
|
||||
#!/usr/bin/env nix-shell
|
||||
---
|
||||
|
||||
(source_file
|
||||
(first_line
|
||||
(shebang_open)
|
||||
(opt_ws)
|
||||
(env)
|
||||
(ws)
|
||||
(nix_shell)))
|
22
corpus/shebang_with_sub_interpreter.txt
Normal file
22
corpus/shebang_with_sub_interpreter.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
==================
|
||||
Minimal nix-shell invocation
|
||||
==================
|
||||
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash
|
||||
---
|
||||
|
||||
(source_file
|
||||
(first_line
|
||||
(shebang_open)
|
||||
(opt_ws)
|
||||
(env)
|
||||
(ws)
|
||||
(nix_shell))
|
||||
(non_first_line
|
||||
(newline)
|
||||
(annotation_line
|
||||
(shebang_open)
|
||||
(opt_ws)
|
||||
(nix_shell)
|
||||
(nix_shell_args))))
|
Reference in New Issue
Block a user