parse arithmetic binary expressions
This commit is contained in:
+1
-1
@@ -217,7 +217,7 @@ parse_format proc($N usize, $format []u8, $Args type) [N]mut FormatToken {
|
||||
token_count := 0
|
||||
argument_count := 0
|
||||
literal_start := 0
|
||||
cursor usize := 0
|
||||
cursor := 0
|
||||
while cursor < format.len {
|
||||
byte :: format[cursor]
|
||||
if byte == '{' {
|
||||
|
||||
@@ -73,10 +73,10 @@ expect_type proc($Expected, $Actual type, _ Actual, location SourceLocation) voi
|
||||
|
||||
run proc(name []u8, callback *proc() void ! Error) bool {
|
||||
callback() catch |_| {
|
||||
debug.print("{s}...[failed]\n", {name,})
|
||||
debug.print("{s} ... [\x1b[91mfailed\x1b[0m]\n", {name})
|
||||
return false
|
||||
}
|
||||
debug.print("{s}...[ok]\n", {name,})
|
||||
debug.print("{s} ... [\x1b[92mok\x1b[0m]\n", {name})
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user