diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-04 17:21:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-04 17:21:32 +0800 |
commit | d48a3f650a875515874e9b8c722fc6dae07a2dd0 (patch) | |
tree | 7b15f4407c5e1159475dc396cf697b7de285f6f2 | |
parent | 7f42574b769149fd0acad0f6396c933b278acc5b (diff) | |
download | lua-language-server-d48a3f650a875515874e9b8c722fc6dae07a2dd0.zip |
cleanup
-rw-r--r-- | script/core/noder.lua | 5 |
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 |