mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 05:10:55 +00:00
parser: fix parsing of modifiers for let definitions
This commit is contained in:
parent
8f60039d6e
commit
24d2ff5743
@ -1,4 +1,4 @@
|
|||||||
let count = 5
|
export let count = 5
|
||||||
|
|
||||||
export func main() {
|
export func main() {
|
||||||
var x = 1
|
var x = 1
|
||||||
|
@ -266,7 +266,6 @@ class Parser(source: PeekableSource<Token>, val attribution: NodeAttribution) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun readLetDefinition(modifiers: DefinitionModifiers): LetDefinition = within {
|
private fun readLetDefinition(modifiers: DefinitionModifiers): LetDefinition = within {
|
||||||
val modifiers = readDefinitionModifiers()
|
|
||||||
expect(TokenType.Let)
|
expect(TokenType.Let)
|
||||||
val name = readSymbolRaw()
|
val name = readSymbolRaw()
|
||||||
expect(TokenType.Equals)
|
expect(TokenType.Equals)
|
||||||
|
Loading…
Reference in New Issue
Block a user