tree-sitter-rescript icon indicating copy to clipboard operation
tree-sitter-rescript copied to clipboard

Support ReScript v11

Open aspeddro opened this issue 2 years ago • 1 comments

Tracking ReScript v11 syntax changes:

  • [x] Extensible records (e.g. type t = {...t1, x:int, ...t2} https://github.com/rescript-lang/rescript-compiler/issues/5659

  • [x] Partial application of uncurried functions: foo(1, ...) https://github.com/rescript-lang/rescript-compiler/pull/6166

  • [x] Dynamic Import module M = await Belt.Array https://github.com/rescript-lang/rescript-compiler/pull/5703

  • [ ] Variant type spreads type bb = | ...aa | Three | Four https://github.com/rescript-lang/rescript-compiler/pull/6316

  • [ ] Tagged template literals sqlselect * from table

Some notes:

  • assert is parsed as a regular function https://github.com/rescript-lang/rescript-compiler/pull/6180
  • Exponentiation operator ** is now right-associative.

aspeddro avatar Aug 28 '23 02:08 aspeddro

What about tagged template literals?

dkirchhof avatar Mar 30 '24 09:03 dkirchhof