mirror of
				https://github.com/GayPizzaSpecifications/pork.git
				synced 2025-11-03 17:39:38 +00:00 
			
		
		
		
	parser: fix parsing of modifiers for let definitions
This commit is contained in:
		@ -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)
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user