parser: fix sizeof(&Foo)
							parent
							
								
									ea960b2ce2
								
							
						
					
					
						commit
						d0ac69d12e
					
				|  | @ -778,9 +778,6 @@ pub fn (p mut Parser) expr(precedence int) ast.Expr { | ||||||
| 		.key_sizeof { | 		.key_sizeof { | ||||||
| 			p.next()			// sizeof
 | 			p.next()			// sizeof
 | ||||||
| 			p.check(.lpar) | 			p.check(.lpar) | ||||||
| 			if p.tok.kind == .amp { |  | ||||||
| 				p.next() |  | ||||||
| 			} |  | ||||||
| 			if p.tok.lit == 'C' { | 			if p.tok.lit == 'C' { | ||||||
| 				p.next() | 				p.next() | ||||||
| 				p.check(.dot) | 				p.check(.dot) | ||||||
|  | @ -1276,7 +1273,6 @@ fn (p mut Parser) string_expr() ast.Expr { | ||||||
| 		if p.tok.kind == .colon { | 		if p.tok.kind == .colon { | ||||||
| 			efmt << ':' | 			efmt << ':' | ||||||
| 			p.next() | 			p.next() | ||||||
| 
 |  | ||||||
| 			// ${num:-2d}
 | 			// ${num:-2d}
 | ||||||
| 			if p.tok.kind == .minus { | 			if p.tok.kind == .minus { | ||||||
| 				efmt << '-' | 				efmt << '-' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue