summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-27 18:57:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-27 18:57:37 +0800
commit14f15056f63d615d2b59f0fcbea08800ae6b49c6 (patch)
tree6deebdda99ede3b45b3905394080a5e510990807 /script
parenteaf7ee99405e164ce660591e4b8d042b1a08411f (diff)
downloadlua-language-server-14f15056f63d615d2b59f0fcbea08800ae6b49c6.zip
fix
Diffstat (limited to 'script')
-rw-r--r--script/parser/newparser.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index 07e7c11e..d63d8f62 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -2124,6 +2124,7 @@ local function parseFunction(isLocal, isAction)
func.name = simple
func.finish = simple.finish
if not isAction then
+ simple.parent = func
pushError {
type = 'UNEXPECT_EFUNC_NAME',
start = simple.start,