diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-01 02:35:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-01 02:35:07 +0800 |
commit | bb2e5b923aac06d8fa42b6df3c609f43b8b6886c (patch) | |
tree | a8ef54dfb85207d26bc739889bc799d0efa4c973 /script-beta/parser/luadoc.lua | |
parent | 15cf11aa55a061ffe7957d1f3d3fc4911ef70957 (diff) | |
download | lua-language-server-bb2e5b923aac06d8fa42b6df3c609f43b8b6886c.zip |
利用错误消息来实现自动完成
Diffstat (limited to 'script-beta/parser/luadoc.lua')
-rw-r--r-- | script-beta/parser/luadoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/parser/luadoc.lua b/script-beta/parser/luadoc.lua index 933ce1be..c6c9032a 100644 --- a/script-beta/parser/luadoc.lua +++ b/script-beta/parser/luadoc.lua @@ -204,7 +204,7 @@ local function parseClass(parent) result.extends = parseName('doc.extends.name', result) if not result.extends then pushError { - type = 'LUADOC_MISS_EXTENDS_NAME', + type = 'LUADOC_MISS_CLASS_EXTENDS_NAME', start = getFinish(), finish = getFinish(), } @@ -569,7 +569,7 @@ local function parseGeneric() object.extends = parseName('doc.extends.name', object) if not object.extends then pushError { - type = 'LUADOC_MISS_EXTENDS_NAME', + type = 'LUADOC_MISS_GENERIC_EXTENDS_NAME', start = getFinish(), finish = getFinish(), } |