diff --git a/src/parser/dowrap/dowrap.c b/src/parser/dowrap/dowrap.c index 940d53c..a64fb4d 100644 --- a/src/parser/dowrap/dowrap.c +++ b/src/parser/dowrap/dowrap.c @@ -75,7 +75,7 @@ ParsedValue *parse_dowrap(char *file, DArray *tokens, size_t *index) { pass = true; break; } - if (temp_indent_depth >= indent_depth) { + if (temp_indent_depth > indent_depth) { size_t indent_amount = temp_indent_depth-indent_depth; Token indent_token; indent_token.line = token->line; diff --git a/test.ar b/test.ar index 33d3147..6ddc579 100644 --- a/test.ar +++ b/test.ar @@ -7,7 +7,10 @@ let a, identity(x) = x, f(x)=do term.log("hello world") - , + do + term.log('hello world') + term.log("hello world") + , g(y, z), result, z = 0, @@ -23,7 +26,7 @@ let a, - + @@ -38,7 +41,7 @@ else term.log("bruh") - +mm