mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: process attributes
This commit is contained in:
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
Block a user