Skip to content

Commit

Permalink
Allow comment after = in assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelGarus committed Feb 1, 2024
1 parent 31d4c63 commit 07d45cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/frontend/src/string_to_rcst/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ fn expression_suffix_assignment<'a>(
let just_the_assignment_sign = assignment_sign.clone();
let input_after_assignment_sign = input;

let (input, more_whitespace) = whitespaces_and_newlines(input, indentation + 1, false);
let (input, more_whitespace) = whitespaces_and_newlines(input, indentation + 1, true);
assignment_sign = assignment_sign.wrap_in_whitespace(more_whitespace);

let is_multiline = left.is_multiline() || assignment_sign.is_multiline();
Expand Down

1 comment on commit 07d45cd

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on 07d45cd Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler

Benchmark suite Current: 07d45cd Previous: fe82a8c Ratio
Time: Compiler/hello_world 56540762 ns/iter (± 1054602) 57241545 ns/iter (± 1844364) 0.99
Time: Compiler/fibonacci 261749049 ns/iter (± 4322254) 263002340 ns/iter (± 13178275) 1.00
Time: VM Runtime/hello_world 40039 ns/iter (± 3089) 39714 ns/iter (± 2581) 1.01
Time: VM Runtime/fibonacci/15 21766733 ns/iter (± 282810) 21899151 ns/iter (± 314266) 0.99
Time: VM Runtime/PLB/binarytrees/6 621556701 ns/iter (± 22827899) 621744217 ns/iter (± 2762858) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.