summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-04 19:37:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-04 19:37:55 +0800
commite74d75c40e5c1b3dff2454b70aafb38332cf8969 (patch)
treebefaad8b0bcf86a9fdc38162c28c994ebb85a7c5 /script/parser
parenta01ab28d27c8f4a61569d3058981b4d3cd43f7bb (diff)
downloadlua-language-server-e74d75c40e5c1b3dff2454b70aafb38332cf8969.zip
cleanup
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 24709104..17be1e96 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -113,34 +113,34 @@ local childMap = {
['while'] = {'filter', '#'},
['in'] = {'keys', 'exps', '#'},
['loop'] = {'loc', 'init', 'max', 'step', '#'},
+ ['do'] = {'#'},
['if'] = {'#'},
['ifblock'] = {'filter', '#'},
['elseifblock'] = {'filter', '#'},
['elseblock'] = {'#'},
['setfield'] = {'node', 'field', 'value'},
+ ['getfield'] = {'node', 'field'},
+ ['setmethod'] = {'node', 'method', 'value'},
+ ['getmethod'] = {'node', 'method'},
+ ['setindex'] = {'node', 'index', 'value'},
+ ['getindex'] = {'node', 'index'},
+ ['tableindex'] = {'index', 'value'},
+ ['tablefield'] = {'field', 'value'},
+ ['tableexp'] = {'value'},
['setglobal'] = {'value'},
['local'] = {'attrs', 'value'},
['setlocal'] = {'value'},
['return'] = {'#'},
- ['do'] = {'#'},
['select'] = {'vararg'},
['table'] = {'#'},
- ['tableindex'] = {'index', 'value'},
- ['tablefield'] = {'field', 'value'},
- ['tableexp'] = {'value'},
['function'] = {'args', '#'},
['funcargs'] = {'#'},
- ['setmethod'] = {'node', 'method', 'value'},
- ['getmethod'] = {'node', 'method'},
- ['setindex'] = {'node', 'index', 'value'},
- ['getindex'] = {'node', 'index'},
['paren'] = {'exp'},
['call'] = {'node', 'args'},
['callargs'] = {'#'},
- ['getfield'] = {'node', 'field'},
['list'] = {'#'},
['binary'] = {1, 2},
- ['unary'] = { 1 },
+ ['unary'] = {1},
['doc'] = {'#'},
['doc.class'] = {'class', '#extends', '#signs', 'comment'},