yaml writer: implement type hinting

This commit is contained in:
Ariadne Conill 2020-11-11 02:51:24 -07:00
parent 2ec3a39c89
commit 95f0ea4895

View file

@ -34,7 +34,7 @@ lif_yaml_write_node(struct lif_yaml_node *node, FILE *f, size_t indent)
switch (node->value_type) switch (node->value_type)
{ {
case LIF_YAML_STRING: case LIF_YAML_STRING:
fprintf(f, "%s\n", node->value); fprintf(f, "!!str %s\n", node->value);
break; break;
case LIF_YAML_OBJECT: case LIF_YAML_OBJECT:
fprintf(f, "\n"); fprintf(f, "\n");