merico-dev / tree-sitter-objc

Tree-sitter parser for Objective-C
MIT License
16 stars 7 forks source link

Fix Blocks literal with return type #8

Closed ghost closed 2 years ago

ghost commented 2 years ago

Blocks literal can include return type, which is not supported in current grammar. This PR added return type in Blocks expression

Example code:

function([db A:a block:^int(Type *type) {
  return 0;
}]);

Here the int is the return type