LuaLS / LuaLS/lua-language-server
[Request] Add dollar sign ($) as a non-standard symbol
Open
Nobody has claimed this yet.
feat/plugin
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
The games Sonic Robo Blast 2 and Sonic Robo Blast 2 Kart use the dollar sign symbol for a sort of replacement for assignment operators.
Example 1
local a = 1
a = $ | 2
is equivalent to
local a = 1
a = a | 2
Example 2
local tbl = {
a = 1
}
tbl.a = $ | 2
is equivalent to
local tbl = {
a = 1
}
tbl.a = tbl.a | 2
Example 3
playerMo.flags = $ & ~MF_NOGRAVITY
is equivalent to
playerMo.flags = playerMo.flags & ~MF_NOGRAVITY
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
No source files or tests are named in the issue. Start by locating the parser or syntax-analysis entry point for Lua expressions and compare it with the three examples; done means the dollar-sign form is accepted and treated like the shown self-referential expressions without breaking standard Lua syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100