diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-10 14:58:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-10 14:58:09 +0800 |
commit | f33db0b3dc76197d20464ca4a95b6472e1bcb634 (patch) | |
tree | f344505784d522603f6702ec53a43f9e604a97b5 /test/hover/init.lua | |
parent | 970a8fa3bc196e3ffc37f7c7301627d1206e78b5 (diff) | |
download | lua-language-server-f33db0b3dc76197d20464ca4a95b6472e1bcb634.zip |
resolve #785
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r-- | test/hover/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 974e0740..089a4b51 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1,6 +1,7 @@ local core = require 'core.hover' local files = require 'files' local catch = require 'catch' +local config = require 'config' rawset(_G, 'TEST', true) @@ -1787,3 +1788,12 @@ local <?f?> [[ local f: async fun() ]] + +config.set('Lua.runtime.nonstandardSymbol', { '//' }) +TEST [[ +local <?x?> = 1 // 2 +]] +[[ +local x: integer = 1 +]] +config.set('runtime.nonstandardSymbol', {}) |