Skip to content

Commit

Permalink
Lua writer: Fix nested binary expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Sep 8, 2024
1 parent d03a95f commit a3b90e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lua-syntax.sml
Original file line number Diff line number Diff line change
Expand Up @@ -815,12 +815,12 @@ struct
{ prec = prec
, exp =
paren prec exp1
@ Fragment (" " ^ luaop ^ " ") :: paren (prec + 1) exp2
@ Fragment (" " ^ luaop ^ " ") :: paren (prec - 1) exp2
}
| InfixOpR (prec, luaop) =>
{ prec = prec
, exp =
paren (prec + 1) exp1
paren (prec - 1) exp1
@ Fragment (" " ^ luaop ^ " ") :: paren prec exp2
}
end
Expand Down

0 comments on commit a3b90e5

Please sign in to comment.