tree-sitter-julia
tree-sitter-julia copied to clipboard
Breaking: Refactor signatures (take 2) and other stuff
Breaking changes:
- Remove
short_function_definition
- short functions are now parsed as
(= (call …) …)
similar to the actual julia parser.
- short functions are now parsed as
- Add visible
signature
rule infunction_definition
andmacro_definition
- This acts as a wrapper around a call or an argument list (if the function is anonymous).
- Add
unary_typed_expression
- Like
typed_expression
, this is a separate rule to make it easier to highlight the RHS as a type, tho it could probably be improved further.
- Like
- Add
_closed_assignment
to handle assignments inside brackets, where they cannot contain open tuples. - Rename
argument_list
toarguments
. - Rename
bare_tuple
toopen_tuple
. - Rename
relative_qualifier
toimport_path
(the name used in JuliaSyntax).
Internal changes:
- Remove
_quotable
- Remove
_number
- Refactor
_operation
Closes #88 Closes #98 Closes #113 Closes #119 Closes #129 Closes #125
This PR is kind of messy, but most of these changes are ports of improvements I've done while rewriting the julia lezer grammar.