npx resyntax
I mess around with files in many syntaxes. .re
files get you better syntax highlighting in vscode so often I program in .re
or .ml
before converting to Rescript. Sharing in case it helps anyone else. It could be cleaner but it works mostly.
Migrate files between .re
.rei
.res
.resi
.ml
.mli
syntaxes for Ocaml,
ReasonML and Rescript syntaxes.
Doesn't always work so check your output. Especially for conversions from .res
to .re
or when convertion functors. See https://github.com/rescript-lang/syntax/issues/264;
npx resyntax
Gets you:
Top comments (0)