tree-sitter-rescript
tree-sitter-rescript copied to clipboard
Support ReScript v11
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.Arrayhttps://github.com/rescript-lang/rescript-compiler/pull/5703 -
[ ] Variant type spreads
type bb = | ...aa | Three | Fourhttps://github.com/rescript-lang/rescript-compiler/pull/6316 -
[ ] Tagged template literals
sqlselect * from table
Some notes:
assertis parsed as a regular function https://github.com/rescript-lang/rescript-compiler/pull/6180- Exponentiation operator
**is now right-associative.
What about tagged template literals?