mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1126] [MERGED] Only allow shebangs in the beginning of a module #900
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1126
Author: @stackoverflow
Created: 7/16/2025
Status: ✅ Merged
Merged: 7/18/2025
Merged by: @stackoverflow
Base:
main← Head:fix-shebangs📝 Commits (4)
d814117Only allow shebangs in the beginning of a module7fd5ca9Only allow shebangs at the very beginning of a file3a8a9c9Revert previous commitf9b76d5Fix tests📊 Changes
6 files changed (+20 additions, -4 deletions)
View changed files
➕
pkl-core/src/test/files/LanguageSnippetTests/input/errors/shebang.pkl(+2 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/input/syntax/shebang.pkl(+2 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/errors/shebang.err(+6 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/syntax/shebang.pcf(+1 -0)📝
pkl-parser/src/main/java/org/pkl/parser/Parser.java(+6 -4)📝
pkl-parser/src/main/resources/org/pkl/parser/errorMessages.properties(+3 -0)📄 Description
Fixes #1125
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.