summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-01 16:01:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-01 16:01:19 +0800
commit25eaef7cec5b0a84b42b03ced1f76ab9ac0cd31b (patch)
tree1edd9367fcd0f639d91cbf99b4d952f415879faf /script
parent72f18d0fb52ff5878549bf8e1d2be9c4ebf93340 (diff)
downloadlua-language-server-25eaef7cec5b0a84b42b03ced1f76ab9ac0cd31b.zip
function is literal
Diffstat (limited to 'script')
-rw-r--r--script/parser/guide.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index b521b8c2..0ceb4d3f 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -139,6 +139,7 @@ function m.isLiteral(obj)
or tp == 'string'
or tp == 'number'
or tp == 'table'
+ or tp == 'function'
end
--- 获取字面量