aboutsummaryrefslogtreecommitdiff
path: root/src/MoonP/moon_ast.h
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-09-11 14:55:22 +0800
committerLi Jin <dragon-fly@qq.com>2020-09-11 14:55:22 +0800
commitdfd4e3b2b2abc0137d26ed3df303a398741bb6a0 (patch)
tree59a1690ad02d56d3f303f6ac1dea9e5d6cdc8f20 /src/MoonP/moon_ast.h
parenteba73a696c65932534fd5aefbe2ca4c7260c0fb6 (diff)
downloadyuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.tar.gz
yuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.tar.bz2
yuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.zip
add implicit objects support while writing tables.
Diffstat (limited to 'src/MoonP/moon_ast.h')
-rw-r--r--src/MoonP/moon_ast.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/MoonP/moon_ast.h b/src/MoonP/moon_ast.h
index 91d7614..16f7801 100644
--- a/src/MoonP/moon_ast.h
+++ b/src/MoonP/moon_ast.h
@@ -527,9 +527,15 @@ AST_NODE(TableLit)
527 AST_MEMBER(TableLit, &sep, &values) 527 AST_MEMBER(TableLit, &sep, &values)
528AST_END(TableLit) 528AST_END(TableLit)
529 529
530AST_NODE(TableBlockIndent)
531 ast_ptr<true, Seperator_t> sep;
532 ast_sel_list<false, variable_pair_t, normal_pair_t, TableBlockIndent_t> values;
533 AST_MEMBER(TableBlockIndent, &sep, &values)
534AST_END(TableBlockIndent)
535
530AST_NODE(TableBlock) 536AST_NODE(TableBlock)
531 ast_ptr<true, Seperator_t> sep; 537 ast_ptr<true, Seperator_t> sep;
532 ast_sel_list<false, variable_pair_t, normal_pair_t> values; 538 ast_sel_list<false, variable_pair_t, normal_pair_t, TableBlockIndent_t> values;
533 AST_MEMBER(TableBlock, &sep, &values) 539 AST_MEMBER(TableBlock, &sep, &values)
534AST_END(TableBlock) 540AST_END(TableBlock)
535 541