rcl/golden/fmt
Ruud van Asseldonk 2750db3188 Allow comments after '=>' in functions
This is another papercut I ran into while working on Advent of Code
exercises. If I recall correctly, previously comments were not allowed
there because there was no good place in the AST to put them, but that
has since been fixed, with parse_expr handling prefixes, so simply
removing the part that skips over noncode does the trick now!
2025-12-13 16:00:04 +01:00
..
assert_trace.test Format assertions like if, not like function call 2025-09-29 20:28:15 +02:00
binop.test Cover null in formatter goldens 2023-09-20 21:37:40 +02:00
call_multiline.test Implement magic trailing comma for collections 2024-06-15 21:55:38 +02:00
chain_atomic.test Make chained expressions first-class in the CST 2024-06-15 15:06:12 +02:00
collapse_blank_lines.test
collections_sep.test Fix formatting of collections that contain unpacks 2025-12-13 15:35:54 +01:00
comment_before_close.test Make expression parser not force non-code after 2025-08-23 20:34:02 +02:00
drop_leading_blank_lines.test Strip leading whitespace in the parser 2023-09-08 20:25:28 +02:00
empty_collections.test Add goldens for formatting f-strings 2023-09-08 20:53:55 +02:00
fstring.test Handle multi-line holes in f-strings better 2024-06-16 22:49:38 +02:00
function.test Allow comments after '=>' in functions 2025-12-13 16:00:04 +01:00
if_else.test Make autoformatter add colon after else by default 2024-07-31 21:46:23 +02:00
if_else_flush.test Make autoformatter add colon after else by default 2024-07-31 21:46:23 +02:00
import.test Add golden tests for type annotation formatting 2024-01-30 21:34:56 +01:00
index_tall.test Add goldens for list indexing 2023-11-21 22:04:14 +01:00
json_dict.test Improve formatting of dicts in the autoformatter 2024-06-15 21:18:08 +02:00
list_comprehension.test Make a trailing comma always force tall 2024-06-18 19:23:40 +02:00
list_force_tall.test Make list fmt test a bit more interesting 2023-09-08 20:53:55 +02:00
magic_trailing_comma.test Rename Int to Number in formatter golden tests 2025-02-24 21:02:54 +01:00
nested_let.test Use comma as the separator in record notation 2023-10-21 10:43:44 +02:00
number_literals.test Implement magic trailing comma for collections 2024-06-15 21:55:38 +02:00
parens_multiline.test
seq_atomic.test Use ':' in assertions rather than ',' 2025-09-29 20:28:15 +02:00
seq_comment.test Add additional tests for the formatter 2025-08-23 20:34:02 +02:00
seq_complexity.test Add additional tests for the formatter 2025-08-23 20:34:02 +02:00
seq_split_suffix.test Add tests for handling of split suffixes 2025-08-23 20:53:27 +02:00
seq_unpack.test Fix formatting of collections that contain unpacks 2025-12-13 15:35:54 +01:00
shebang.test Support shebang lines in the CST 2023-09-23 21:18:07 +02:00
statement_complexity.test Format long statement chains tall even if they fit 2024-06-16 23:25:00 +02:00
string_newlines.test Correct typo in golden test 2023-09-20 21:44:12 +02:00
string_preserves_break.test Use comma as the separator in record notation 2023-10-21 10:43:44 +02:00
string_triple_quotes.test Add coverage for formatting """""" 2025-08-25 22:56:49 +02:00
types.test Rename Int to Number in formatter golden tests 2025-02-24 21:02:54 +01:00
types_blank_in_annotation.test Remove now-redundant cases of Prefixed<Expr> 2024-06-16 22:49:27 +02:00
unop.test Fix spacing in UnOp formatting 2024-06-15 21:18:08 +02:00