This commit is contained in:
mhoffm
2021-06-13 09:33:34 +02:00
parent db2aab2fec
commit a70fcb8e9f

View File

@@ -134,9 +134,18 @@ module.exports = grammar({
splat: $ => choice($.attr_splat, $.full_splat),
attr_splat: $ => seq('.', '*', repeat($.get_attr)),
attr_splat: $ => seq(
'.',
'*',
repeat($.get_attr),
),
full_splat: $ => seq('[', '*', ']', repeat(choice($.get_attr, $.index))),
full_splat: $ => seq(
'[',
'*',
']',
repeat(choice($.get_attr, $.index)),
),
for_expr: $ => choice($.for_tuple_expr, $.for_object_expr),