mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
Parser accepts wrong string escapes #263
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?
Originally created by @stackoverflow on GitHub (Jan 17, 2025).
The above code renders foo as
foo 1even though this is not syntactically valid Pkl.In fact any number of
#can be used and Pkl will still parse the interpolation.The correct code would be: