diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-29 17:07:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-29 17:07:02 +0800 |
commit | 8b37f59c00f7c56e5da89d9fdcf7b98710e59fbd (patch) | |
tree | be478ce12bbb39f881e87488b8d5ab7432b1f7fb | |
parent | 734d9c6abeffaf8f70ef043a7a960fdd6cf16ca1 (diff) | |
download | lua-language-server-8b37f59c00f7c56e5da89d9fdcf7b98710e59fbd.zip |
终于用新的方法过了local
-rw-r--r-- | server-beta/src/parser/ast.lua | 2 | ||||
-rw-r--r-- | server-beta/src/parser/guide.lua | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/server-beta/src/parser/ast.lua b/server-beta/src/parser/ast.lua index 8094cc73..c9ae7078 100644 --- a/server-beta/src/parser/ast.lua +++ b/server-beta/src/parser/ast.lua @@ -90,6 +90,8 @@ end local function getSelect(vararg, index) return { type = 'select', + start = vararg.start, + finish = vararg.finish, vararg = vararg, index = index, } diff --git a/server-beta/src/parser/guide.lua b/server-beta/src/parser/guide.lua index da851138..69b49f85 100644 --- a/server-beta/src/parser/guide.lua +++ b/server-beta/src/parser/guide.lua @@ -40,11 +40,12 @@ m.childMap = { ['setlocal'] = {'value'}, ['return'] = {'#'}, ['do'] = {'#'}, + ['select'] = {'vararg'}, ['index'] = {'index'}, ['table'] = {'#'}, ['tableindex'] = {'index', 'value'}, ['tablefield'] = {'value'}, - ['function'] = {'args'}, + ['function'] = {'args', '#'}, ['funcargs'] = {'#'}, ['setmethod'] = {'node', 'method', 'value'}, ['getmethod'] = {'node', 'method'}, |