Fix diagnostics (#716)
This commit is contained in:
parent
6358c5b23e
commit
5ddbf24d11
@ -368,6 +368,8 @@ fn getAstCheckDiagnostics(
|
|||||||
var line_iterator = std.mem.split(u8, stderr_bytes, "\n");
|
var line_iterator = std.mem.split(u8, stderr_bytes, "\n");
|
||||||
|
|
||||||
while (line_iterator.next()) |line| lin: {
|
while (line_iterator.next()) |line| lin: {
|
||||||
|
if (!std.mem.startsWith(u8, line, "<stdin>")) continue;
|
||||||
|
|
||||||
var pos_and_diag_iterator = std.mem.split(u8, line, ":");
|
var pos_and_diag_iterator = std.mem.split(u8, line, ":");
|
||||||
const maybe_first = pos_and_diag_iterator.next();
|
const maybe_first = pos_and_diag_iterator.next();
|
||||||
if (maybe_first) |first| {
|
if (maybe_first) |first| {
|
||||||
|
Loading…
Reference in New Issue
Block a user