cleanup
This commit is contained in:
13
grammar.js
13
grammar.js
@@ -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),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user