From ba6bcdb4692ce1ca335947c66c5a169514beefde Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 29 Jul 2019 19:14:05 +0200 Subject: [PATCH] fix vweb template compilation --- compiler/parser.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/parser.v b/compiler/parser.v index 9db16026bc..8d93c8d602 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -3097,7 +3097,7 @@ fn (p mut Parser) return_st() { } else { // Don't allow `return val` in functions that don't return anything - if p.tok == .name || p.tok == .number || p.tok == .str { + if !p.is_vweb && (p.tok == .name || p.tok == .number || p.tok == .str) { p.error('function `$p.cur_fn.name` should not return a value') }