Skip to content

Commit

Permalink
Add floor division operators (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
rimuy authored Feb 7, 2024
1 parent eb0217d commit 86f7bd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LuauAST/types/operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export type BinaryOperator =
| "-"
| "*"
| "/"
| "//"
| "^"
| "%"
| ".."
Expand All @@ -17,4 +18,4 @@ export type BinaryOperator =

export type UnaryOperator = "-" | "not" | "#";

export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "^=" | "..=";
export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "//=" | "%=" | "^=" | "..=";
1 change: 1 addition & 0 deletions src/LuauRenderer/util/needsParentheses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const BINARY_OPERATOR_PRECEDENCE: { [K in luau.BinaryOperator]: number } = {
"-": 5,
"*": 6,
"/": 6,
"//": 6,
"%": 6,
"^": 8,
};
Expand Down

0 comments on commit 86f7bd5

Please sign in to comment.