c argument names in bindings
This commit is contained in:
@@ -1110,7 +1110,7 @@ parse_params :: proc(parser: ^Parser) -> ([]ast.Param, bool) {
|
||||
names: [dynamic]token.Token
|
||||
names.allocator = parser.module.allocator
|
||||
for {
|
||||
if current(parser).kind != .Identifier {
|
||||
if current(parser).kind != .Identifier && current(parser).kind != .Underscore {
|
||||
source.add(parser.diagnostics, current(parser).span, "expected parameter name")
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user