lang: add start/end coordinates to lexer tokens
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user