aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-24 23:28:59 +0000
committergingerBill <bill@gingerbill.org>2022-01-24 23:28:59 +0000
commitfe0b5bf4e27912c49f6c5eab817cbf514b0b22e4 (patch)
treef208f73ef6f9ae23c9a5ff548b8aa935e6de2ccf /src/parser.hpp
parentf20105ddfee6d9a2aa02452e459c42c7f0310e76 (diff)
Parse comments on enums fields
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index b83822cbf..b005a4465 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -383,6 +383,12 @@ AST_KIND(_ExprBegin, "", bool) \
void *sce_temp_data; \
}) \
AST_KIND(FieldValue, "field value", struct { Token eq; Ast *field, *value; }) \
+ AST_KIND(EnumFieldValue, "enum field value", struct { \
+ Ast *name; \
+ Ast *value; \
+ CommentGroup *docs; \
+ CommentGroup *comment; \
+ }) \
AST_KIND(TernaryIfExpr, "ternary if expression", struct { Ast *x, *cond, *y; }) \
AST_KIND(TernaryWhenExpr, "ternary when expression", struct { Ast *x, *cond, *y; }) \
AST_KIND(OrElseExpr, "or_else expression", struct { Ast *x; Token token; Ast *y; }) \