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

vweb: minor fixes

This commit is contained in:
Alexander Medvednikov
2019-12-20 03:02:16 +03:00
parent fbd9fedbfb
commit 61bfecfa09
4 changed files with 131 additions and 115 deletions

View File

@ -1146,9 +1146,8 @@ pub fn vfmt(args []string) {
exit(1)
}
println('WIP')
/*
vexe := vexe_path()
//launch_tool('vfmt', '-d vfmt')
// launch_tool('vfmt', '-d vfmt')
vroot := os.dir(vexe)
os.chdir(vroot)
ret := os.system('$vexe -o $vroot/tools/vfmt -d vfmt v.v')
@ -1156,10 +1155,10 @@ pub fn vfmt(args []string) {
println('err')
return
}
os.exec('$vroot/tools/vfmt $file') or { panic(err) }
//if !os.exists('
*/
os.exec('$vroot/tools/vfmt $file')or{
panic(err)
}
// if !os.exists('
}
pub fn create_symlink() {

View File

@ -1584,6 +1584,7 @@ fn (p mut Parser) var_decl() {
p.check(.comma)
if p.tok == .key_mut {
p.check(.key_mut)
p.fspace()
var_mut << true
}
else {