diff --git a/src/parser.odin b/src/parser.odin index 6c2803c..94301a3 100644 --- a/src/parser.odin +++ b/src/parser.odin @@ -60,7 +60,7 @@ parse :: proc(lines: []string, allocator := context.allocator) -> Token { if len(line) == 0 { if line_index != len(lines) - 1 { - if current_token.parent != nil { + for current_token.parent != nil { current_token = current_token.parent }