lang: add start/end coordinates to lexer tokens

This commit is contained in:
2025-04-28 22:53:21 +01:00
parent 2cbbc4c349
commit 1c3aff9ad3
3 changed files with 58 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ struct ivy_lexer {
b_queue lex_state;
unsigned int lex_brace_depth;
unsigned long lex_token_start_row, lex_token_start_col;
unsigned long lex_token_end_row, lex_token_end_col;
unsigned long lex_cursor_row, lex_cursor_col;
char *lex_linebuf;
size_t lex_linebuf_len;
size_t lex_linebuf_cap;