Skip to content

Commit

Permalink
Consume contents location rather than lbracket
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
  • Loading branch information
Morriar committed Mar 23, 2023
1 parent 94670fd commit 95d1e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/syntax_tree/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def on_array(contents)
location: lbracket.location.to(rbracket.location)
)
else
tstring_end = consume_tstring_end(contents.lbracket.location)
tstring_end = consume_tstring_end(contents.contents.location)

ArrayLiteral.new(
lbracket: contents.lbracket,
Expand Down

0 comments on commit 95d1e23

Please sign in to comment.