Closed ronisbr closed 5 months ago
Yes, "open" macros in function parameters won't parse correctly (even if enclosed in parenthesis), but using function-like macros works OK:
function teste(
a,
@nospecialize(b),
c
)
return a, b, c
end
Hopefully this isn't very inconvenient.
The reason why only one of the two is allowed:
Hi @savq !
I think the proposed work around is fine! Thank you very much!
Hi!
First of all, thank you very much for adding support for Julia in tree-sitter!
I think the current version of the grammar does not support the macro
@nospecialize
in function arguments like:The grammar says that there is an error in this snippet, but it is a valid Julia code.