diff options
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.c b/src/parser.c index 5d8bdf3..4e315e5 100644 --- a/src/parser.c +++ b/src/parser.c @@ -56,7 +56,8 @@ struct grecs_node * grecs_parse(const char *name) { grecs_error_count = 0; - grecs_current_locus.file = grecs_install_text(name); - grecs_current_locus.line = 0; + grecs_current_locus_point.file = grecs_install_text(name); + grecs_current_locus_point.line = 1; + grecs_current_locus_point.col = 0; return grecs_parser_fun(name, grecs_trace_flags); } |