mirror of
https://github.com/apple/pkl.git
synced 2026-05-27 00:59:16 +02:00
Only allow shebangs in the beginning of a module (#1126)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
foo = 1
|
||||
#!/usr/bin/env pkl eval
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env pkl eval
|
||||
foo = 1
|
||||
@@ -0,0 +1,6 @@
|
||||
–– Pkl Error ––
|
||||
Invalid token at position. Expected a class, typealias, method, or property.
|
||||
|
||||
x | #!/usr/bin/env pkl eval
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
at shebang (file:///$snippetsDir/input/errors/shebang.pkl)
|
||||
@@ -0,0 +1 @@
|
||||
foo = 1
|
||||
Reference in New Issue
Block a user