fmt: process attributes
parent
a3a7e0531a
commit
5918946feb
|
@ -112,6 +112,9 @@ fn (f mut Fmt) stmt(node ast.Stmt) {
|
|||
}
|
||||
f.writeln('')
|
||||
}
|
||||
ast.Attr {
|
||||
f.writeln('[$it.name]')
|
||||
}
|
||||
ast.BranchStmt {
|
||||
match it.tok.kind {
|
||||
.key_break {
|
||||
|
|
|
@ -41,6 +41,7 @@ fn new_user() User {
|
|||
}
|
||||
}
|
||||
|
||||
[inline]
|
||||
fn fn_contains_range_expr() {
|
||||
a := 1 in arr[0..2]
|
||||
}
|
||||
|
|
|
@ -45,6 +45,8 @@ User
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
[inline]
|
||||
fn fn_contains_range_expr() {
|
||||
a:=1 in arr[0..2]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue