local config = require "config" TEST [[ local <~a~> = 1 = ]] TEST [[ <~a~> = 1 = ]] TEST [[ local t t.<~a~> = 1 t. = t. ]] TEST [[ t.<~a~> = 1 t. = t. ]] TEST [[ :: :: goto <~LABEL~> if true then goto end ]] TEST [[ :: <~LABEL~> :: goto if true then goto end ]] TEST [[ local a = 1 local <~a~> = 1 = ]] TEST [[ local <~a~> local b = ]] TEST [[ local t = { <~a~> = 1 } print(t.) ]] TEST [[ t[<~'a'~>] = 1 print(t.) ]] TEST [[ local t = { [<~'a'~>] = 1 } print(t.) ]] TEST [[ table.() function table.<~dump~>() end ]] TEST [[ local t = {} t.<~x~> = 1 t[a.b.c] = 1 ]] TEST [[ local t = {} t.x = 1 t[a.b.<~x~>] = 1 ]] TEST [[ self = { results = { <~labels~> = {}, } } self[self.results.] = lbl ]] TEST [[ a.b.<~c~> = 1 print(a.b.) ]] TEST [[ local = {} function mt:x() <~self~>:x() end ]] TEST [[ local <~mt~> = {} function :x() self:x() end ]] TEST [[ local mt = {} function mt:() self:<~x~>() end ]] TEST [[ local mt = {} function mt:<~x~>() self:() end ]] TEST [[ a..c = 1 print(a.<~b~>.c) ]] TEST [[ _G.<~xxx~> = 1 print() ]] TEST [[ ---@class <~Class~> ---@type ---@type ]] TEST [[ ---@class Class local <~t~> ---@type Class local x ]] TEST [[ ---@class Class local t ---@type Class local <~x~> ]] -- BUG TEST [[ ---@return <~xxx~> function f() end ]] TEST [[ ---@class A ---@class B: A ---@type A local <~t~> ]] --TEST [[ -----@class A --local a -- -----@type A --local b -- -----@type A --local c -- --b.<~x~> = 1 --c. = 1 --]] TEST [[ ---@class a local a = { } ---@class b local b = { } a.color = { 1, 1, 1 } b.<~color~> = a.color ]]