New parser fails on nested multi line comments #296

Closed
opened 2025-12-30 01:23:15 +01:00 by adam · 1 comment
Owner

Originally created by @djarnis73 on GitHub (Mar 5, 2025).

Hi

Just updated to 0.28.1 and there seems to be a regression regarding multi line comments.

This fails:

echo "/* /* */ 1" | pkl repl 

With:

pkl0> –– Pkl Error ––
Unexpected end of file.

1 | /* /* */ 1
^
at repl:pkl0 (repl:pkl0)

This is ok:

echo "/* */ 1" | pkl repl 

Its not a big issue for me, just thought I would mention it.

Originally created by @djarnis73 on GitHub (Mar 5, 2025). Hi Just updated to 0.28.1 and there seems to be a regression regarding multi line comments. This fails: ``` echo "/* /* */ 1" | pkl repl ``` With: > pkl0> –– Pkl Error –– > Unexpected end of file. > > 1 | /* /* */ 1 > ^ > at repl:pkl0 (repl:pkl0) > This is ok: ``` echo "/* */ 1" | pkl repl ``` Its not a big issue for me, just thought I would mention it.
adam closed this issue 2025-12-30 01:23:15 +01:00
Author
Owner

@bioball commented on GitHub (Mar 6, 2025):

Thanks for the bug report! I can reproduce this.

@bioball commented on GitHub (Mar 6, 2025): Thanks for the bug report! I can reproduce this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#296