Skip to content

Commit

Permalink
types: fix reporting of if block end position
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Sep 19, 2024
1 parent af5aed5 commit d8965fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3531,7 +3531,6 @@ do
if not block.body then
return i
end
end_at(block.body, ps.tokens[i - 1])
block.yend, block.xend = block.body.yend, block.body.xend
table.insert(node.if_blocks, block)
return i, node
Expand Down
1 change: 0 additions & 1 deletion tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -3531,7 +3531,6 @@ local function parse_if_block(ps: ParseState, i: integer, n: integer, node: Node
if not block.body then
return i
end
end_at(block.body, ps.tokens[i - 1])
block.yend, block.xend = block.body.yend, block.body.xend
table.insert(node.if_blocks, block)
return i, node
Expand Down

0 comments on commit d8965fa

Please sign in to comment.