LuaLS / LuaLS/lua-language-server
[Request] Enum bitfield?
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
---@enum eStopFlags bitfield
eStopFlags = {
STP_PHYSICAL_OBJECTS = 1,
STP_NONPHYSICAL_OBJECTS = 2,
STP_PLAYER = 4,
STP_UPDATE = 8,
STP_PHYSICS = 16,
}
if g_StopFlags & (eStopFlags.STP_PHYSICAL_OBJECTS | eStopFlags.STP_UPDATE) then
print("Can't update physical objects")
end
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the enum and bitfield example in the issue, then locate the language server's handling of @enum annotations and expression operators. Done should mean the example is recognized and receives appropriate language-server support, with tests covering the bitfield enum behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100