LuaLS / LuaLS/lua-language-server

[Request] Add dollar sign ($) as a non-standard symbol

Open
#1,897 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.