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

fmt: fix rare extra tab after a SumType (#8035)

This commit is contained in:
Lukas Neubert
2021-01-11 22:19:42 +01:00
committed by GitHub
parent 72317975fc
commit 5d6e9f7bf9
2 changed files with 3 additions and 2 deletions

View File

@@ -28,7 +28,6 @@ pub type ScopeObject = ConstField | GlobalField | Var
// TOOD: replace table.Param
pub type Node = ConstField | EnumField | Expr | Field | File | GlobalField | IfBranch |
MatchBranch | ScopeObject | SelectBranch | Stmt | StructField | StructInitField | table.Param
pub struct Type {
pub:

View File

@@ -574,7 +574,9 @@ pub fn (mut f Fmt) type_decl(node ast.TypeDecl) {
if i < sum_type_names.len - 1 {
f.write(' | ')
}
f.wrap_long_line(2, true)
if i < sum_type_names.len - 1 {
f.wrap_long_line(2, true)
}
}
// f.write(sum_type_names.join(' | '))
comments << node.comments