syntax icon indicating copy to clipboard operation
syntax copied to clipboard

ReScript's syntax as a standalone repo.

Results 108 syntax issues
Sort by recently updated
recently updated
newest added

Repro: ```res @warning("-8") let [c1, c2, c3, c4, c5] = [cards.c1, cards.c2, cards.c3, cards.c4, cards.c5]->Js.Array2.sortInPlaceWith((a, b) => rankToIndex(a.rank) - rankToIndex(b.rank) ) ``` Formats into: ```res @warning let [c1, c2, c3,...

```reason let fn = f => f; type f = int => unit; let a = fn(_ => (): f); ```

I see this trip up a lot of newcomers, especially with the generic `'a`. ```sh This pattern matches values of type option unit} external foo: unit => foo = "foo"...

```res {Js.Array.map(d => {1 }, dates)->React.array} {fooooooooooooooooooo(baaaaaaaaar, baaaaaaaaz)} ``` Formats into: ```res {Js.Array.map(d => { 1 }, dates)->React.array} {fooooooooooooooooooo(baaaaaaaaar, baaaaaaaaz)} ``` I suspect this has something to do with our...

We don't have to go back to `Buffer`, but having the buffer do specialized flush_newline logic seems weird. Feel free to close if it's not weird.

Right now we have a few `-1`s around for e.g. `pos_cnum`. We should avoid those

Is it possible to get the Bucklescript preprocessor working in ReScript?

```res let eq = \"=" let shalloweq = \"==" let concat = \"^" let concat = \"++" // Error: "The value ++ can't be found" ``` Maybe this is intentional?...

```re type foo = | Bar | Baz; let x = 2; let fooToString = fun | Bar => string_of_int (x) + "Bar" | Baz => "Baz"; ``` npx bsc...

bug
PRIORITY:high