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

V shell scripts

This commit is contained in:
Alexander Medvednikov
2019-10-15 18:08:46 +03:00
parent 96152510e5
commit 5cd38ec91b
6 changed files with 66 additions and 23 deletions

View File

@ -202,7 +202,7 @@ fn (p mut Parser) chash() {
else if hash.contains('embed') {
pos := hash.index('embed') + 5
file := hash.right(pos)
if p.pref.build_mode != BuildMode.default_mode {
if p.pref.build_mode != .default_mode {
p.genln('#include $file')
}
}
@ -210,10 +210,6 @@ fn (p mut Parser) chash() {
// Move defines on top
p.cgen.includes << '#$hash'
}
else if hash == 'v' {
println('v script')
//p.v_script = true
}
// Don't parse a non-JS V file (`#-js` flag)
else if hash == '-js' {
$if js {