checker: fix #include with @VROOT

pull/6651/head
Delyan Angelov 2020-10-18 22:31:15 +03:00
parent 9f620ab23b
commit 92d9569d5d
1 changed files with 1 additions and 0 deletions

View File

@ -2466,6 +2466,7 @@ fn (mut c Checker) hash_stmt(mut node ast.HashStmt) {
return return
} }
node.val = 'include $vroot' node.val = 'include $vroot'
node.main = vroot
} }
flag_no_comment := flag.all_before('//').trim_space() flag_no_comment := flag.all_before('//').trim_space()
if !((flag_no_comment.starts_with('"') && flag_no_comment.ends_with('"')) || if !((flag_no_comment.starts_with('"') && flag_no_comment.ends_with('"')) ||