syntax
syntax copied to clipboard
ReScript's syntax as a standalone repo.
With the introduction of more general structural typing https://forum.rescript-lang.org/t/ann-more-strict-checks-in-missed-labels/2117 most of the JSX ppx could be removed. In particular, one could just use functions from the language directly. A plan...
They are currently being formatted based on line width. it would be good to allow user decide whether to break line on pipes or not. for example this code gets...
As a general ppx writing rule: the `loc_ghost` part of any location should be `true` unless it's one unique copy of an original expression, or a single new expression that...
See - https://github.com/rescript-lang/syntax/pull/512 - https://github.com/rescript-lang/rescript-vscode/pull/440 One case resolved, this case still outstanding: ```res // hovering on inferred type: (. unit, unit) => int let arity0c = (. (), ()) =>...
Apparently this is a syntax error: ```rescript type vv = @dead AA | BB | CC ``` but not this ```rescript type vv = | @dead AA | BB |...
```js module Button = { @react.componentt let make = (~count: int) => { {count->React.int} } } let make = () => ``` yields this error at the call site ```...
Hi For files with CLRF line endings formatting inside raw(``) goes haywire, creates newlines after each line. If the line ending is changed to LF then the formatting is intact.
## Motivation Currently an expression with empty braces results in a syntax error. If you write the same code in Js, it parses. It is quite common while writing code...
First attempt tackling #122 There are a few tests breaking bc of this, not sure how to solve them.
Is there any syntax for [refutation cases]? Or is that planned? [refutation cases]: https://ocaml.org/releases/4.12/htmlman/gadts.html#p:gadt-refutation-cases