Make carets line up in dtc diagnostics if the line starts with a tab.
This commit is contained in:
parent
4a62545173
commit
8d9c809950
@ -216,7 +216,8 @@ input_buffer::parse_error(const char *msg)
|
||||
putc('\n', stderr);
|
||||
for (int i=0 ; i<(cursor-line_start) ; ++i)
|
||||
{
|
||||
putc(' ', stderr);
|
||||
char c = (buffer[i+line_start] == '\t') ? '\t' : ' ';
|
||||
putc(c, stderr);
|
||||
}
|
||||
putc('^', stderr);
|
||||
putc('\n', stderr);
|
||||
|
Loading…
Reference in New Issue
Block a user