justarandomgeek / vscode-factoriomod-debug

Factorio Mod Tool Kit
Other
97 stars 21 forks source link

`global` likes to delete tokens (?) #112

Closed penguinencounter closed 5 months ago

penguinencounter commented 6 months ago

Typing global. anywhere seems to delete make LuaLS think the token immediately before doesn't exist, even if global isn't a variable name.

Example (control.lua):

local fail1a = "global.name1"
local fail1b = "text global.also text"
local okay1 = "text global text"

local fail2 = 1-global.name2
local okay2 = 1 - global.name2

image