meta parser better file line reporting

This commit is contained in:
Krzosa Karol
2025-02-01 08:35:04 +01:00
parent 942cff9a6b
commit 85a6c218b2
13 changed files with 41 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
fn void mt_ui_colors(ma_arena_t *arena, sb8_t *c, sb8_t *h) {
ast_t *table = mtt_parse(arena, __FILE__, S8_CODE(
ast_t *table = mtt_parse(arena, FILE_AND_LINE, S8_CODE(
{ name color }
{ rect `v4f32_hsla_to_rgba((v4f32_t){0.0f, 0.2f, 0.95f, 1.0f})` }
{ rect_hot `v4f32_hsla_to_rgba((v4f32_t){0.0f, 0.5f, 0.95f, 1.0f})` }
@@ -31,7 +31,7 @@ fn void mt_ui_colors(ma_arena_t *arena, sb8_t *c, sb8_t *h) {
}
fn void mt_ui_stacks(ma_arena_t *arena, sb8_t *c, sb8_t *h) {
ast_t *table = mtt_parse(arena, __FILE__, S8_CODE(
ast_t *table = mtt_parse(arena, FILE_AND_LINE, S8_CODE(
// skip = don't include in ui_box_t as field
{ type name skip init }
{ ui_id_t id 1 `ui_idf("root")` }