Compare commits
2 Commits
247f29ca62
...
3a549aa6df
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a549aa6df | |||
| cbc9e926d8 |
+5
-1
@@ -4,10 +4,10 @@
|
|||||||
#include "../write.h"
|
#include "../write.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <ctype.h>
|
||||||
#include <fx/core/stringstream.h>
|
#include <fx/core/stringstream.h>
|
||||||
#include <fx/term/print.h>
|
#include <fx/term/print.h>
|
||||||
#include <fx/term/tty.h>
|
#include <fx/term/tty.h>
|
||||||
#include <ctype.h>
|
|
||||||
#include <ivy/line-source.h>
|
#include <ivy/line-source.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@@ -449,11 +449,15 @@ static void print_snippet(
|
|||||||
update_highlighting(&printer);
|
update_highlighting(&printer);
|
||||||
|
|
||||||
diag_stream_putc(stream, c);
|
diag_stream_putc(stream, c);
|
||||||
|
if (c == '[') {
|
||||||
|
diag_stream_putc(stream, c);
|
||||||
|
}
|
||||||
|
|
||||||
update_underline(&printer);
|
update_underline(&printer);
|
||||||
}
|
}
|
||||||
|
|
||||||
diag_stream_putc(stream, '\n');
|
diag_stream_putc(stream, '\n');
|
||||||
|
|
||||||
write_underline(&printer);
|
write_underline(&printer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,4 +6,6 @@ y = 32 * 64.
|
|||||||
z = 64 / 4.
|
z = 64 / 4.
|
||||||
x = y + z.
|
x = y + z.
|
||||||
|
|
||||||
|
q = [ x = y[0] ].
|
||||||
|
|
||||||
cout put:'Answer: {x}'
|
cout put:'Answer: {x}'
|
||||||
|
|||||||
Reference in New Issue
Block a user