diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-10-27 16:21:12 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-10-27 16:21:12 +0200 |
| commit | 601a1a447aee462575c8de91677991750cb612e5 (patch) | |
| tree | 03e36f3406331675454b7069a0126c88e193ebba /src/testing | |
| parent | 42a1ceac0e9a080e11fa94d153c0dc5f3e24738b (diff) | |
Add support for matrix types
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin index e4ac86d..0d97870 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -58,9 +58,9 @@ setup :: proc(src: ^Source) { } else if current == '\n' { current_line += 1 current_character = 0 - } else if current == '*' { + } else if src.main[current_index:current_index + 3] == "{*}" { dst_slice := transmute([]u8)src.main[current_index:] - src_slice := transmute([]u8)src.main[current_index + 1:] + src_slice := transmute([]u8)src.main[current_index + 3:] copy(dst_slice, src_slice) src.position.character = current_character src.position.line = current_line |