diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 11:11:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 11:11:13 +0800 |
commit | 2f88316f4431dab4ad5170748ddb4d8456c1ba1a (patch) | |
tree | 6b0628f882f79ab87ac51d01570a96dcbed996bb | |
parent | 5e2226552e68368023b88c240e5ffefec6e0c760 (diff) | |
download | lua-language-server-2f88316f4431dab4ad5170748ddb4d8456c1ba1a.zip |
修正一些问题
-rw-r--r-- | locale/en-US/script.lni | 4 | ||||
-rw-r--r-- | script-beta/parser/guide.lua | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/locale/en-US/script.lni b/locale/en-US/script.lni index d9dcaa49..1e62c817 100644 --- a/locale/en-US/script.lni +++ b/locale/en-US/script.lni @@ -55,9 +55,7 @@ DIAG_LUADOC_MISS_CATE_NAME = '<doc name> expected.' DIAG_CIRCLE_DOC_CLASS = 'Circularly inherited classes.' DIAG_DOC_FIELD_NO_CLASS = 'The field must be defined after the class.' DIAG_DUPLICATE_DOC_CLASS = 'Duplicate defined class.' -DIAG_DUPLICATE_DOC_FIELD = 'Duplicate defined fields. - -' +DIAG_DUPLICATE_DOC_FIELD = 'Duplicate defined fields.' DIAG_DUPLICATE_DOC_PARAM = 'Duplicate params.' DIAG_UNDEFINED_DOC_CLASS = 'Undefined class.' DIAG_UNDEFINED_DOC_NAME = 'Undefined type or alias.' diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index 7e1bc278..8893c81d 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -2617,6 +2617,9 @@ end function m.getDocTypeNames(status, doc, genericCallback) local results = {} + if not doc then + return results + end for _, unit in ipairs(doc.types) do local typeName = getDocTypeUnitName(status, unit, genericCallback) results[#results+1] = { |