gleam-lang / tree-sitter-gleam

🌳 A tree-sitter grammar for the Gleam programming language
Apache License 2.0
71 stars 13 forks source link

Update for Gleam v0.24's <> operator #38

Closed lpil closed 1 year ago

lpil commented 1 year ago

Hello!

The latest Gleam release has added a new syntax, the <> operator.

Could we update this library to support it please? 🙏

https://github.com/gleam-lang/gleam/blob/6202f1b7b2aa15767b5a45410e870060befb4fa3/compiler-core/src/parse.rs#L847

https://github.com/gleam-lang/gleam/blob/6202f1b7b2aa15767b5a45410e870060befb4fa3/compiler-core/src/parse.rs#L2735

Thanks!

the-mikedavis commented 1 year ago

I can take a look at this 🙂

It looks like <> is supported in patterns in cases - is it supported in guard expressions too?

lpil commented 1 year ago

Thank you!

Not yet, no.

J3RN commented 1 year ago

Just merged @the-mikedavis' PR for this feature; will do a proper v0.24 release tomorrow morning