Commit Graph

11 Commits

Author SHA1 Message Date
Daniel Chao 3223083324 Format interpolated expressions as single line (#1247)
This forces iterpolated expressions to be single-line, so that newline
literals within the bounds of two string delimiters can be seen as
verbatime newlines in the resulting string.

Edge case: in the case of a line comment, it's not possible to keep
this as a single line expression.
These are kept as multi-line expressions.

Also:

* Remove `ForceWrap`, this node is not used.
* Rename `StringConstant` -> `StringChars`
2025-10-24 03:23:41 -07:00
Islon Scherer f6d3fb1228 Fix let formatting (#1246) 2025-10-21 09:45:27 +02:00
Islon Scherer 222741dccd Fix broken test (#1208) 2025-09-17 13:53:15 -07:00
Islon Scherer fdc501a35c Implement canonical formatter (#1107)
CLI commands also added: `pkl format check` and `pkl format apply`.
2025-09-17 11:12:04 +02:00
Jen Basch a8806416b9 Correctly handle EOF after unmatched backtick (#1187) 2025-08-25 14:31:26 -07:00
Jen Basch ae5f02b285 Allow trailing commas in comma-separated syntax elements (#1137) 2025-08-21 06:43:38 -07:00
Islon Scherer ba82c5c6d6 Only allow shebangs in the beginning of a module (#1126) 2025-07-18 11:18:45 +02:00
Islon Scherer 3a35be6311 Remove ANTLR from the repo (#1114) 2025-07-08 09:43:35 +02:00
Jen Basch dbf57280ba Fix crash due to parse error in module header (#1112) 2025-07-01 10:05:16 +02:00
Islon Scherer fe2e4aa1a4 Simplify precedence and associativity parsing (#1066) 2025-05-12 14:59:26 +02:00
Islon Scherer aad530b9a8 move parser out of pkl-core (#1024) 2025-03-18 20:23:53 +01:00