parser: fix parsing of modifiers for let definitions

This commit is contained in:
alex committed 2023-09-11 05:03:12 -04:00
1 parent 8f60039d6e
commit 24d2ff5743
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
let count = 5
export let count = 5
export func main() {
var x = 1
@@ -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)