diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-11 21:14:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-11 21:14:37 +0800 |
commit | 806e0b9b0b283232d86518eff89a43547f1efdd8 (patch) | |
tree | 470adfabd83ca54dc7f624ecf7573a639edf4323 /server/test | |
parent | a1b5be3d5561cf4f8e185d02e69b2d21fc840b98 (diff) | |
download | lua-language-server-806e0b9b0b283232d86518eff89a43547f1efdd8.zip |
修正bug
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/definition/bug.lua | 8 | ||||
-rw-r--r-- | server/test/vm/init.lua | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/server/test/definition/bug.lua b/server/test/definition/bug.lua index 0386a1d3..4ba65463 100644 --- a/server/test/definition/bug.lua +++ b/server/test/definition/bug.lua @@ -52,3 +52,11 @@ self = { } self[self.results.<?labels?>] = lbl ]] + +TEST [[ +local mt = {} +function mt:<!x!>() +end +mt:x() +mt:<?x?>() +]] diff --git a/server/test/vm/init.lua b/server/test/vm/init.lua index 799fa367..9b7de1e2 100644 --- a/server/test/vm/init.lua +++ b/server/test/vm/init.lua @@ -129,3 +129,5 @@ end local v = 2 xx() ]] + +TEST(io.load(ROOT / 'src' / 'matcher' / 'vm.lua')) |