compiler: let attributes work with pub functions
parent
040d03912b
commit
695d4018ea
|
@ -3632,7 +3632,7 @@ fn (p mut Parser) attribute() {
|
|||
p.attr = p.check_name()
|
||||
}
|
||||
p.check(.rsbr)
|
||||
if p.tok == .func {
|
||||
if p.tok == .func || (p.tok == .key_pub && p.peek() == .func) {
|
||||
p.fn_decl()
|
||||
p.attr = ''
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue