mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: parser fixes for vweb
This commit is contained in:

committed by
Alexander Medvednikov

parent
837af9b230
commit
edd4706480
@ -169,7 +169,9 @@ fn (p mut Parser) comp_time() {
|
||||
}
|
||||
p.import_table.register_used_import('strings')
|
||||
p.genln('/////////////////// tmpl start')
|
||||
p.is_vweb = true
|
||||
p.statements_from_text(v_code, false)
|
||||
p.is_vweb = false
|
||||
p.genln('/////////////////// tmpl end')
|
||||
receiver := p.cur_fn.args[0]
|
||||
dot := if receiver.is_mut { '->' } else { '.' }
|
||||
|
Reference in New Issue
Block a user