tree-sitter / tree-sitter-julia

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

The grammar cannot handle a function without keywords but with ";" #113

Closed ronisbr closed 4 months ago

ronisbr commented 1 year ago

Hi!

The current version of the grammar gives an error if we add ; in the function arguments but do not add any keywords, which is a valid Julia syntax.

This code:

function teste(a;)
    return a
end

provides:

(source_file
 (ERROR function
  (call_expression (identifier)
   (argument_list ( (identifier) ; )))
  end))