Make carets line up in dtc diagnostics if the line starts with a tab.
This commit is contained in:
parent
8255307210
commit
70c59fcff4
@ -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