1
0
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:
joe-conigliaro
2019-11-25 23:29:55 +11:00
committed by Alexander Medvednikov
parent 837af9b230
commit edd4706480
2 changed files with 27 additions and 15 deletions

View File

@ -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 { '.' }