diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2023-07-02 19:43:31 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2023-07-02 19:43:31 +0200 |
| commit | b9642f114f221c54c30efde20fc3664c85f7b809 (patch) | |
| tree | 186f470f723b0c9f1b085bfc38b57e7878f06642 /src | |
| parent | e147f6af9a3b1f697f36ab41c9908edee11cc249 (diff) | |
enforc fit on selector expressions
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index df48bbb..e54dafc 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1909,10 +1909,12 @@ visit_expr :: proc( ) } case ^Selector_Expr: - document = cons( - visit_expr(p, v.expr), - text_token(p, v.op), - visit_expr(p, v.field), + document = enforce_fit( + cons( + visit_expr(p, v.expr), + text_token(p, v.op), + visit_expr(p, v.field), + ), ) case ^Paren_Expr: document = group( |