Make sure dot-expression works as well

This commit is contained in:
Sofia 2026-03-17 19:50:44 +02:00
parent ba4b36b7ba
commit af80cd43b3
2 changed files with 1 additions and 2 deletions

View File

@ -1,3 +1,3 @@
global sometable = {}
sometable["hello"] = "there"
sometable.hello = "there"

View File

@ -305,7 +305,6 @@ impl Parse for IndexedAccess {
}
Token::Symbol('.') => {
let word = stream.parse::<Node<String>>()?;
stream.expect_symbol(']')?;
expressions.push(Node {
kind: Expression::Literal(Literal::String(word.kind)),
meta: word.meta,