summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-08 15:56:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-08 15:56:30 +0800
commit8d618992bb7f1d20dde955d8defd62e26e06bf87 (patch)
tree0c70693e1ffafbc01a445a1f8f8f3ca6f827054d /script/provider
parent0c6f72254d1253f12261650b90652465230bdeec (diff)
downloadlua-language-server-8d618992bb7f1d20dde955d8defd62e26e06bf87.zip
Revert "only need characters other than the identifier"
This reverts commit 11b3da9bc01f7048a86db64a70524daa73fed61a.
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/capability.lua2
-rw-r--r--script/provider/completion.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/capability.lua b/script/provider/capability.lua
index a66d4627..79261129 100644
--- a/script/provider/capability.lua
+++ b/script/provider/capability.lua
@@ -6,7 +6,7 @@ local platform = require 'bee.platform'
local m = {}
local function allWords()
- local str = [[.:('"[,#*@|=- ]]
+ local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@|=- ]]
local list = {}
for c in str:gmatch '.' do
list[#list+1] = c
diff --git a/script/provider/completion.lua b/script/provider/completion.lua
index dc087f5d..67d1771e 100644
--- a/script/provider/completion.lua
+++ b/script/provider/completion.lua
@@ -3,7 +3,7 @@ local proto = require 'proto'
local isEnable = false
local function allWords()
- local str = [[.:('"[,#*@|=- ]]
+ local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@|=- ]]
local list = {}
for c in str:gmatch '.' do
list[#list+1] = c