LuaLS / LuaLS/lua-language-server

Parser fails on annotations containing '[['

Open
#3,353 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

---@param data [[integer, integer][], integer]
local function foo(data)
end

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the parser failure with the annotation shown in the issue and trace how the nested brackets are handled. The change is done when this annotation parses successfully without breaking the existing annotation syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.