summaryrefslogtreecommitdiff
path: root/script/core/linker.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-21 22:03:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-21 22:03:46 +0800
commit7dd6a5440cb40082f74a865c79d06b2ab8a9c7c1 (patch)
treebda76033195d933d6144a4b8d09475c2341afcb3 /script/core/linker.lua
parentb0c3c3047361c63c7f0c0587ec98964c6a7c4a98 (diff)
downloadlua-language-server-7dd6a5440cb40082f74a865c79d06b2ab8a9c7c1.zip
split
Diffstat (limited to 'script/core/linker.lua')
-rw-r--r--script/core/linker.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/linker.lua b/script/core/linker.lua
index 3185ecda..ef6dd010 100644
--- a/script/core/linker.lua
+++ b/script/core/linker.lua
@@ -5,7 +5,7 @@ local vm = require 'vm.vm'
local Linkers
local LastIDCache = {}
local SPLIT_CHAR = '\x1F'
-local SPLIT_REGEX = SPLIT_CHAR .. '.-$'
+local SPLIT_REGEX = SPLIT_CHAR .. '[^' .. SPLIT_CHAR .. ']+$'
local INDEX_CHAR = '\x1E'
---是否是全局变量(包括 _G.XXX 形式)