Skip to content

Commit

Permalink
resolve conflict for _array_size_definition
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-Q committed Jul 28, 2023
1 parent c383ca2 commit 678c7ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module.exports = grammar({
[$.object_reference, $._qualified_field],
[$.object_reference],
[$.between_expression, $.binary_expression],
[$.array_size_definition],
],

precedences: $ => [
Expand Down Expand Up @@ -447,11 +446,11 @@ module.exports = grammar({

array_size_definition: $ => seq(
choice(
seq(optional($.keyword_array), $._array_size_definition),
seq($.keyword_array, optional($._array_size_definition)),
repeat1($._array_size_definition),
$.keyword_array,
),
),

_array_size_definition: $ => seq(
'[',
optional(field("size", alias($._integer, $.literal))),
Expand Down

0 comments on commit 678c7ed

Please sign in to comment.