tree-sitter-julia
tree-sitter-julia copied to clipboard
`where` keyword not properly parsed
Input:
function norm(p::Point{T} where T<:Real)
sqrt(p.x^2 + p.y^2)
end
Output:
function_definition [0, 0] - [2, 3]
name: identifier [0, 9] - [0, 13]
parametere: parameter_list [0, 13] - [0, 40]
typed_parameter [0, 14] - [0, 25]
identifier [0, 14] - [0, 15]
parameterized_identifier [0, 17] - [0, 25]
identifier [0, 17] - [0, 22]
type_argument_list [0, 22] - [0, 25]
identifier [0, 23] - [0, 24]
ERROR [0, 26] - [0, 39]
identifier [0, 26] - [0, 31]
identifier [0, 32] - [0, 33]
identifier [0, 35] - [0, 39]
call_expression [1, 4] - [1, 23]
identifier [1, 4] - [1, 8]
argument_list [1, 8] - [1, 23]
binary_expression [1, 9] - [1, 22]
binary_expression [1, 9] - [1, 14]
field_expression [1, 9] - [1, 12]
identifier [1, 9] - [1, 10]
identifier [1, 11] - [1, 12]
number [1, 13] - [1, 14]
binary_expression [1, 17] - [1, 22]
field_expression [1, 17] - [1, 20]
identifier [1, 17] - [1, 18]
identifier [1, 19] - [1, 20]
number [1, 21] - [1, 22]
The input code was taken from the Parametric Composite Types section of the Julia docs.