mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: fixes for option syntax formatting
This commit is contained in:
committed by
Alexander Medvednikov
parent
1d86f4b5d1
commit
ae4c8af674
@@ -99,8 +99,11 @@ fn (p mut Parser) gen_handle_option_or_else(_typ, name string, fn_call_ph int) s
|
||||
typ = parse_pointer(typ[7..])
|
||||
p.genln(';')
|
||||
or_tok_idx := p.token_idx
|
||||
p.fspace()
|
||||
p.check(.key_orelse)
|
||||
p.fspace()
|
||||
p.check(.lcbr)
|
||||
p.fspace()
|
||||
p.register_var(Var{
|
||||
name: 'err'
|
||||
typ: 'string'
|
||||
|
||||
Reference in New Issue
Block a user