fmt
This commit is contained in:
		
							parent
							
								
									1af4030dc1
								
							
						
					
					
						commit
						c1549bbc6d
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -17,7 +17,12 @@ type ParseError struct { | |||
| } | ||||
| 
 | ||||
| func (pe *ParseError) Error() string { | ||||
| 	return fmt.Sprintf("ParseError [%d][%s]: %s", pe.token.line, pe.token.typ, pe.message) | ||||
| 	return fmt.Sprintf( | ||||
| 		"ParseError [%d][%s]: %s", | ||||
| 		pe.token.line, | ||||
| 		pe.token.typ, | ||||
| 		pe.message, | ||||
| 	) | ||||
| } | ||||
| 
 | ||||
| func newParser(tokens []Token) *Parser { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue