diff options
Diffstat (limited to 'server-beta/src/parser')
-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'}, |