justarandomgeek / vscode-factoriomod-debug

Factorio Mod Tool Kit
Other
122 stars 26 forks source link

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

Closed penguinencounter closed 10 months ago

penguinencounter commented 10 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