diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 17:26:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 17:26:50 +0800 |
commit | 8bca250c629afe7cf99ade2042288b9f2cdde722 (patch) | |
tree | 9bf9b2db9927b950de66f51c3361bf7f34495010 /server/test | |
parent | f3260ceb043848c26dd7ef45d0a5210ea6d4a5ba (diff) | |
download | lua-language-server-8bca250c629afe7cf99ade2042288b9f2cdde722.zip |
支持常亮oo
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/find_lib/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/test/find_lib/init.lua b/server/test/find_lib/init.lua index 910167c8..06e04912 100644 --- a/server/test/find_lib/init.lua +++ b/server/test/find_lib/init.lua @@ -81,5 +81,18 @@ require 'table'.<?insert?>() TEST '*string:sub' [[ local str = 'xxx' +str.<?sub?> = 1 +]] + +TEST '*string:sub' [[ +local str = 'xxx' str:<?sub?>(1, 1) ]] + +TEST '*string:sub' [[ +('xxx').<?sub?> = 1 +]] + +TEST '*string:sub' [[ +('xxx'):<?sub?>() +]] |