From 73f66fd5d434c8951c30bb90c80c5f8329b0b06d Mon Sep 17 00:00:00 2001 From: Niels Bross Date: Wed, 1 Oct 2025 20:24:58 +0200 Subject: [PATCH] Initial ensom --- parsing.jai | 1 + test/dangling_dot.ink | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/dangling_dot.ink 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; +}