You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LuaJit nonstandard symbol // for floor division has wrong behavior #3504
Write // with LuaJIT runtime version + extensions on, and // added to nonstandard symbols, and see it recognized as floor division as per here LuaJIT/LuaJIT#1475
Actual Behaviour
It gets recognized as comment delimiter instead, breaking syntax
Reproduction steps
Set runtime version to LuaJIT
Enable LuaJIT extensions
Add // to non standard symbols setting
Additional Notes
I am using LuaJIT runtime version with the extension enabled, and // added to nonStandardSymbols. It gets detected as a comment starter rather than a floor-division operator though, as seen here: filloax/isaac-lua-api-vscode#43
The LuaJIT version I am working with uses that syntax extension; I am not sure how standard it is, but could this be fixed? EIther by changing behavior, or if other runtimes really do have // as comment then adding an alt value to the enum such as // (floor division)
Activity