diff --git a/examples/test.lua b/examples/test.lua index 5993979..9af97d2 100644 --- a/examples/test.lua +++ b/examples/test.lua @@ -1,3 +1,3 @@ global sometable = {} -sometable["hello"] = "there" +sometable.hello = "there" diff --git a/src/ast.rs b/src/ast.rs index 2e3be82..edc33bd 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -305,7 +305,6 @@ impl Parse for IndexedAccess { } Token::Symbol('.') => { let word = stream.parse::>()?; - stream.expect_symbol(']')?; expressions.push(Node { kind: Expression::Literal(Literal::String(word.kind)), meta: word.meta,