diff --git a/parsing.jai b/parsing.jai index 8d5b1eb..e1eb854 100644 --- a/parsing.jai +++ b/parsing.jai @@ -643,6 +643,7 @@ precedence :: (parse_state : *Parser, precedence : Precedence, message : string while precedence <= get_rule(parse_state.current.kind).precedence { advance(parse_state); + if parse_state.current.kind == .TOKEN_EOF { tok_s : string; tok_s.data = parse_state.previous.source; diff --git a/test/dangling_dot.ink b/test/dangling_dot.ink new file mode 100644 index 0000000..252955f --- /dev/null +++ b/test/dangling_dot.ink @@ -0,0 +1,8 @@ +Foo :: struct { + v : float2; +} + +vertex main :: () { + f : Foo; + f..v.x = 0.0; +}