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