tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 32 forks source link

Error for tuple parameters #70

Closed ChrHorn closed 1 year ago

ChrHorn commented 1 year ago
function f(x, (y, z))
end
source_file [0, 0] - [2, 0]
  function_definition [0, 0] - [1, 3]
    name: identifier [0, 9] - [0, 10]
    parameters: parameter_list [0, 10] - [0, 20]
      identifier [0, 11] - [0, 12]
      ERROR [0, 14] - [0, 15]
      identifier [0, 15] - [0, 16]
      identifier [0, 18] - [0, 19]
    ERROR [0, 20] - [0, 21]

Ref: https://docs.julialang.org/en/v1/manual/functions/#Argument-destructuring