`continue -- comment` rejected with `runtime.nonstandardSymbol=["continue"]`
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- lua
- 领域
- testing-qa, tooling
调研方向
Start with the Lua syntax checking and diagnostics paths for parsing continue with a trailing comment; compare them with the reproduction where continue has no comment. Confirm both reported errors are fixed for the commented case while the uncommented case still parses correctly.
由索引模型根据 Issue 内容生成。
描述
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Linux
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
The continue should not be underlined in red or error.
for i = 1, 2 do
continue -- trailing comment
end
Actual Behaviour
Two errors:
- Unexpected < exp > . Lua Syntax Check.(exp-in-action)
- Undefined global
continue. Lua Diagnostics.(undefined-global)
Reproduction steps
This parses correctly:
for i = 1, 2 do
continue
end
This does not:
for i = 1, 2 do
continue -- trailing comment
end
Additional Notes
No response
Log File
No response
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 449
- 平均合并
- 15 天 6 小时
- 30 天内合并 PR
- 4
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LuaLS/lua-language-server 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
LuaLS/lua-language-server#3477 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
LuaLS/lua-language-server#3473 ·
-
Ny未关闭
难度 1/5 1 小时以内 新手友好度 87/100
LuaLS/lua-language-server#3472 ·
-
Witch未关闭
难度 1/5 1 小时以内 新手友好度 88/100
LuaLS/lua-language-server#3471 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
LuaLS/lua-language-server#1776 ·
查看 LuaLS/lua-language-server 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 76/100
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
petertriho/nvim-scrollbar#120 ·
-
Addon Conflict Bug Forever Module - Tracker
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100