summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-04 17:21:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-04 17:21:32 +0800
commitd48a3f650a875515874e9b8c722fc6dae07a2dd0 (patch)
tree7b15f4407c5e1159475dc396cf697b7de285f6f2
parent7f42574b769149fd0acad0f6396c933b278acc5b (diff)
downloadlua-language-server-d48a3f650a875515874e9b8c722fc6dae07a2dd0.zip
cleanup
-rw-r--r--script/core/noder.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index f25684a5..67d76715 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1318,6 +1318,11 @@ function m.isCommonField(field)
return true
end
+function m.isGlobalID(id)
+ return ssub(id, 1, 2) == 'g:'
+ or ssub(id, 1, 3) == 'dn:'
+end
+
---获取source的ID
---@param source parser.guide.object
---@return string