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

net.ftp: make ftp's tests just compile (not run) on CI

This commit is contained in:
Delyan Angelov
2019-12-28 14:55:53 +02:00
committed by Alexander Medvednikov
parent 48585e54df
commit 68e1d8e8eb
5 changed files with 29 additions and 24 deletions

View File

@ -3019,6 +3019,7 @@ fn (p mut Parser) attribute() {
if p.tok == .key_if {
// [if vfmt]
p.next()
p.fspace()
p.attr = 'if ' + p.check_name()
}
else {

View File

@ -259,7 +259,7 @@ fn (p &Parser) gen_fmt() {
//s := p.scanner.fmt_out.str().replace('\n\n\n', '\n').trim_space()
//s := p.scanner.fmt_out.str().trim_space()
//p.scanner.fgenln('// nice')
s1 := p.scanner.fmt_lines.join('')
mut s := p.scanner.fmt_lines.join('')
/*.replace_each([
'\n\n\n\n', '\n\n',
' \n', '\n',
@ -268,13 +268,12 @@ fn (p &Parser) gen_fmt() {
*/
//.replace('\n\n\n\n', '\n\n')
s2 := s1.replace(' \n', '\n')
s3 := s2.replace(') or{', ') or {')
s4 := s3.replace(')or{', ') or {')
s5 := s4.replace('or{', 'or {')
s6 := s5.replace('}}\n', '}\n\t}\n')
s := s6
s = s.replace(' \n', '\n')
s = s.replace(') or {', ') or {')
s = s.replace(') or{', ') or {')
s = s.replace(')or{', ') or {')
s = s.replace('or{', 'or {')
s = s.replace('}}\n', '}\n\t}\n')
if s == '' {
return