match to switch; Optional semicolons after "import" statements

This commit is contained in:
Ginger Bill
2017-10-01 17:09:57 +01:00
parent f38c8875b2
commit c1e720a49b
33 changed files with 641 additions and 451 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ rune_count :: proc(s: []u8) -> int {
rune_size :: proc(r: rune) -> int {
match {
switch {
case r < 0: return -1;
case r <= 1<<7 - 1: return 1;
case r <= 1<<11 - 1: return 2;