tree-sitter / tree-sitter-julia

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

finally before catch does not parse, though it is valid syntax. #99

Closed aviks closed 1 year ago

aviks commented 1 year ago

This is valid Julia code as of 1.8 but does not parse using this parser

try
    println(1)
  finally
    println("donw")
  catch e
    println("error")
  end
savq commented 1 year ago

Yes, I had drafted a fix for that a long time ago in #24, but I never found that order in the wild, so I figured the grammar was fine without it.

If it is being used, we could definitely add it to the grammar tho.

savq commented 1 year ago

Closed by #100