diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-24 23:28:59 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-24 23:28:59 +0000 |
| commit | fe0b5bf4e27912c49f6c5eab817cbf514b0b22e4 (patch) | |
| tree | f208f73ef6f9ae23c9a5ff548b8aa935e6de2ccf /src/check_expr.cpp | |
| parent | f20105ddfee6d9a2aa02452e459c42c7f0310e76 (diff) | |
Parse comments on enums fields
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 1742ef2d8..725b57f33 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -9341,6 +9341,13 @@ gbString write_expr_to_string(gbString str, Ast *node, bool shorthand) { str = gb_string_appendc(str, " = "); str = write_expr_to_string(str, fv->value, shorthand); case_end; + case_ast_node(fv, EnumFieldValue, node); + str = write_expr_to_string(str, fv->name, shorthand); + if (fv->value) { + str = gb_string_appendc(str, " = "); + str = write_expr_to_string(str, fv->value, shorthand); + } + case_end; case_ast_node(ht, HelperType, node); str = gb_string_appendc(str, "#type "); |