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

checker: fix #include with @VROOT

This commit is contained in:
Delyan Angelov 2020-10-18 22:31:15 +03:00
parent 9f620ab23b
commit 92d9569d5d

View File

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