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