mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1187] [MERGED] Correctly handle EOF after unmatched backtick #931
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/1187
Author: @HT154
Created: 8/25/2025
Status: ✅ Merged
Merged: 8/25/2025
Merged by: @HT154
Base:
main← Head:repl-unmatched-backtick📝 Commits (1)
d4cdc5bCorrectly handle EOF after unmatched backtick📊 Changes
5 files changed (+31 additions, -2 deletions)
View changed files
📝
pkl-cli/src/test/kotlin/org/pkl/cli/repl/ReplMessagesTest.kt(+8 -1)➕
pkl-core/src/test/files/LanguageSnippetTests/input/errors/singleBacktick.pkl(+1 -0)➕
pkl-core/src/test/files/LanguageSnippetTests/output/errors/singleBacktick.err(+7 -0)📝
pkl-parser/src/main/java/org/pkl/parser/Lexer.java(+8 -1)📝
pkl-parser/src/test/kotlin/org/pkl/parser/LexerTest.kt(+7 -0)📄 Description
Resolves #1182
This issue does actually affect both
pkl replandpkl eval. It's trickier to observe for eval because many editors add a trailing newline automatically, which avoids the bug. Here's a repro for eval:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.