Just one last funtion of my homework \!

This commit is contained in:
Raphaël 2024-07-22 17:02:23 +02:00
parent 3260d8704e
commit f89462e25e
5 changed files with 79 additions and 11 deletions

View file

@ -424,7 +424,7 @@ module.exports = grammar({
$._arithmetic_expression,
)),
prec(PREC.UNARY, seq(
field('op', alias(tokenLiterals(1, '-', '+', '~'), $.operator)),
field('op', alias(tokenLiterals(1, '-', '+'), $.operator)),
$._arithmetic_expression,
)),
prec.right(PREC.UNARY, seq(