Skip to content

Commit

Permalink
parser: fix parsing of modifiers for let definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
azenla committed Sep 11, 2023
1 parent 8f60039 commit 24d2ff5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion examples/count.pork
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let count = 5
export let count = 5

export func main() {
var x = 1
Expand Down
1 change: 0 additions & 1 deletion parser/src/main/kotlin/gay/pizza/pork/parser/Parser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 24d2ff5

Please sign in to comment.