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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user