local config = require "config" TEST [[ local !> = 1 = ]] TEST [[ = 1 a = ]] TEST [[ local t t. = 1 t.a = t. ]] TEST [[ t. = 1 t.a = t. ]] TEST [[ :: :: goto !> if true then goto end ]] TEST [[ :: !> :: goto if true then goto end ]] TEST [[ local a = 1 local !> = 1 = ]] TEST [[ local !> local b = ]] TEST [[ local t = { = 1 } print(t.) ]] TEST [[ t[] = 1 print(t.) ]] TEST [[ local t = { [] = 1 } print(t.) ]] TEST [[ table.() function table.() end ]] TEST [[ local t = {} t. = 1 t[a.b.c] = 1 ]] TEST [[ local t = {} t.x = 1 t[a.b.] = 1 ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', true) TEST [[ local t local = t. () return { = , } ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', false) TEST [[ self = { results = { = {}, } } self[self.results.] = lbl ]] TEST [[ a.b. = 1 print(a.b.) ]] TEST [[ local = {} function :x() :x() end ]] TEST [[ local mt = {} function mt:() self:() end ]] TEST [[ a..c = 1 print(a..c) ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', true) TEST [[ local local t = { = } print(t.) ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', false) TEST [[ local local = ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', true) TEST [[ local a. = ]] TEST [[ . = ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', false) TEST [[ local local = ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', true) TEST [[ local . = ]] config.set(nil, 'Lua.IntelliSense.traceBeSetted', false) TEST [[ _G. = 1 print() ]] TEST [[ ---@class ---@type ---@type ]] TEST [[ ---@class ---@type ---@type ]] TEST [[ ---@class Class local ---@type Class local ]] TEST [[ ---@class Class local ---@type Class local ]] -- BUG TEST [[ ---@return function f() end ]] TEST [[ ---@class A ---@class B: A ---@type A local ]] TEST [[ ---@class A local a ---@type A local b ---@type A local c b. = 1 c. = 1 ]]