Skip to content

Commit

Permalink
fix LSP crashes when parsing tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
lizho authored Jan 30, 2024
1 parent 7f95e6f commit 7503881
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/parser/luadoc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ local function parseTuple(parent)
}
index = index + 1
field.extends = parseType(field)
if not field.extends then
break
end
field.optional = field.extends.optional
field.start = field.extends.start
field.finish = field.extends.finish
Expand Down

0 comments on commit 7503881

Please sign in to comment.