1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: fix in, |, or {}

This commit is contained in:
Alexander Medvednikov
2019-12-18 07:52:14 +03:00
parent 3d1db3519d
commit 02939d776b
4 changed files with 30 additions and 22 deletions

View File

@@ -35,6 +35,7 @@ fn (p mut Parser) comp_time() {
p.check(.lcbr)
os := os_from_string(name)
if ((!not && os != p.os) || (not && os == p.os)) &&
!p.scanner.is_fmt &&
!p.pref.output_cross_c
{
// `$if os {` for a different target, skip everything inside