diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-22 20:55:01 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-22 20:55:01 +0800 |
commit | f98ffdd94500e6bb0441401c7de36325b01d5e02 (patch) | |
tree | 9380317520d1778c85ae879ed505d95ab54fd1a3 /server/src/parser/ast.lua | |
parent | 93e2f3eba87b85a8bb819bd5557aa13145143be2 (diff) | |
download | lua-language-server-f98ffdd94500e6bb0441401c7de36325b01d5e02.zip |
修正报错
Diffstat (limited to 'server/src/parser/ast.lua')
-rw-r--r-- | server/src/parser/ast.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index 55364ca9..f7a94dfc 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -1235,6 +1235,17 @@ local Defs = { symbol = symbol, } } + return + end, + UnknownAction = function (start, symbol) + pushError { + type = 'UNKNOWN_SYMBOL', + start = start, + finish = start + #symbol - 1, + info = { + symbol = symbol, + } + } return false end, DirtyName = function (pos) |