parser: fix parsing of modifiers for let definitions

This commit is contained in:
Alex Zenla 2023-09-11 05:03:12 -04:00
parent 8f60039d6e
commit 24d2ff5743
Signed by: alex
GPG Key ID: C0780728420EBFE5
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,4 @@
let count = 5
export let count = 5
export func main() {
var x = 1

View File

@ -266,7 +266,6 @@ class Parser(source: PeekableSource<Token>, val attribution: NodeAttribution) {
}
private fun readLetDefinition(modifiers: DefinitionModifiers): LetDefinition = within {
val modifiers = readDefinitionModifiers()
expect(TokenType.Let)
val name = readSymbolRaw()
expect(TokenType.Equals)