access -> array_access

This commit is contained in:
ProgramSnail 2023-07-18 15:17:02 +03:00
parent f525fce6d7
commit 3b4be40ef7
4 changed files with 14 additions and 14 deletions

View file

@ -139,7 +139,7 @@ module.exports = grammar({
choice($.simple_name_identifier, $.placeholder),
),
access: $ => seq($._scoped_expression, '[', $._super_expression, ']'),
array_access: $ => seq($._scoped_expression, '[', $._super_expression, ']'),
tuple_access: $ => seq($._scoped_expression, '.', $.number_literal),
@ -202,7 +202,7 @@ module.exports = grammar({
$.array,
$.placeholder,
$.name_definition,
$.access,
$.array_access,
$.tuple_access,
$.loop_control,
$.reference,