fix binary operators

This commit is contained in:
mhoffm
2021-06-19 18:10:47 +02:00
parent 6cc5e7b721
commit d61fefced0
7 changed files with 8772 additions and 8265 deletions

View File

@@ -71,7 +71,6 @@ module.exports = grammar({
expression: $ => choice(
$._expr_term,
$.operation,
$.conditional,
),
@@ -82,6 +81,7 @@ module.exports = grammar({
$.variable_expr,
$.function_call,
$.for_expr,
$.operation,
seq($._expr_term, $.index),
seq($._expr_term, $.get_attr),
seq($._expr_term, $.splat),
@@ -224,8 +224,8 @@ module.exports = grammar({
$._function_call_end,
),
_function_call_start: $ => token('('),
_function_call_end: $ => token(')'),
_function_call_start: $ => '(',
_function_call_end: $ => ')',
function_arguments: $ => prec.right(seq(
optional($._newline),