Skip to content

Commit

Permalink
fix: adjust precedence for "-" (issue bugwheels94#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Chiquet committed Jun 9, 2023
1 parent 9f9105b commit e1463fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const lex = function (this: Mexp, inp: string, tokens: Token[]) {
var changeSignObj: ParsedToken = {
value: this.math.changeSign,
type: 0,
precedence: 1,
precedence: 4,
show: '-',
}
var closingParObj: ParsedToken = {
Expand Down

0 comments on commit e1463fd

Please sign in to comment.