diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-13 17:06:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-13 17:06:15 +0800 |
commit | 63b8bbe46c4815c2885776aefed96b8cb8aaf9f5 (patch) | |
tree | 46bf5237866d0b815a4780e9f876e5419376b885 /test/basic | |
parent | bd8b30417e87959510545847d4db580d34603943 (diff) | |
download | lua-language-server-63b8bbe46c4815c2885776aefed96b8cb8aaf9f5.zip |
stash
Diffstat (limited to 'test/basic')
-rw-r--r-- | test/basic/linker.lua | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/test/basic/linker.lua b/test/basic/linker.lua index e663579e..5fd48ce4 100644 --- a/test/basic/linker.lua +++ b/test/basic/linker.lua @@ -36,5 +36,40 @@ end TEST [[ local <?x?> ]] { - id = 'l9x', + id = '9', +} + +TEST [[ +local x +print(<?x?>) +]] { + id = '7', +} + +TEST [[ +local x +<?x?> = 1 +]] { + id = '7', +} + +TEST [[ +print(<?X?>) +]] { + id = '"X"', + global = true, +} + +TEST [[ +print(<?X?>) +]] { + id = '"X"', + global = true, +} + +TEST [[ +local x +print(x.y.<?z?>) +]] { + id = '7|"y"|"z"', } |