Skip to content

Commit 07b54cc

Browse files
committed
Update BuckleScript -> ReScript
1 parent c67c672 commit 07b54cc

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

syntax/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 BuckleScript
3+
Copyright (c) 2020 ReScript
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

syntax/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# ReScript Syntax ![Tests](https://github.com/BuckleScript/syntax/workflows/CI/badge.svg)
1+
# ReScript Syntax ![Tests](https://github.com/rescript-lang/syntax/workflows/CI/badge.svg)
22

33
Blog post: https://reasonml.org/blog/bucklescript-8-1-new-syntax
44

5-
Documentation: https://reasonml.org/docs/reason-compiler/latest/new-bucklescript-syntax
5+
Documentation: https://rescript-lang.org/docs/manual/latest/overview
66

77
This repo is the source of truth for the ReScript parser & printer. Issues go here.
88

@@ -32,7 +32,7 @@ Required:
3232

3333
```sh
3434
opam switch create 4.06.1 && eval $(opam env)
35-
git clone https://github.com/bucklescript/syntax.git
35+
git clone https://github.com/rescript-lang/syntax.git
3636
cd syntax
3737
npm install
3838
make # or: make -j9 for faster build

syntax/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

syntax/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "bucklescript-syntax",
2+
"name": "rescript-syntax",
33
"version": "0.0.8-dev",
44
"description": "",
55
"main": "Napkinscript.ml",
@@ -15,12 +15,12 @@
1515
"scripts": {},
1616
"repository": {
1717
"type": "git",
18-
"url": "git+https://github.com/BuckleScript/syntax.git"
18+
"url": "git+https://github.com/rescript-lang/syntax.git"
1919
},
2020
"author": "Iwan ([email protected])",
2121
"license": "MIT",
2222
"bugs": {
23-
"url": "https://github.com/BuckleScript/syntax/issues"
23+
"url": "https://github.com/rescript-lang/syntax/issues"
2424
},
25-
"homepage": "https://github.com/BuckleScript/syntax#readme"
25+
"homepage": "https://github.com/rescript-lang/syntax#readme"
2626
}

syntax/src/res_cli.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55

66
(*
77
This is OCaml's Misc.ml's Color module. More specifically, this is
8-
BuckleScript's OCaml fork's Misc.ml's Color module:
9-
https://github.com/BuckleScript/ocaml/blob/92e58bedced8d7e3e177677800a38922327ab860/utils/misc.ml#L540
8+
ReScript's OCaml fork's Misc.ml's Color module:
9+
https://github.com/rescript-lang/ocaml/blob/92e58bedced8d7e3e177677800a38922327ab860/utils/misc.ml#L540
1010
1111
The syntax's printing's coloring logic depends on:
1212
1. a global mutable variable that's set in the compiler: Misc.Color.color_enabled
1313
2. the colors tags supported by Misc.Color, e.g. style_of_tag, which Format
1414
tags like @{<error>hello@} use
1515
3. etc.
1616
17-
When this syntax is programmatically used inside BuckleScript, the various
17+
When this syntax is programmatically used inside ReScript, the various
1818
Format tags like <error> and <dim> get properly colored depending on the
1919
above points.
2020
2121
But when used by this cli file, that coloring logic doesn't render properly
22-
because we're compiling against vanilla OCaml 4.06 instead of BuckleScript's
22+
because we're compiling against vanilla OCaml 4.06 instead of ReScript's
2323
OCaml fork. For example, the vanilla compiler doesn't support the `dim`
2424
color (grey). So we emulate the right coloring logic by copy pasting how BS'
2525
OCaml does it.

syntax/src/res_diagnostics_printing_utils.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(*
2-
This file is taken from BuckleScript's super_misc.ml and super_location.ml
3-
We're copying the look of BuckleScript's terminal error reporting.
4-
See https://github.com/BuckleScript/syntax/pull/77 for the rationale.
2+
This file is taken from ReScript's super_misc.ml and super_location.ml
3+
We're copying the look of ReScript's terminal error reporting.
4+
See https://github.com/rescript-lang/syntax/pull/77 for the rationale.
55
*)
66

77
(* ===== super_misc.ml *)
@@ -224,7 +224,7 @@ let print src startPos endPos ppf () =
224224
end
225225
;;
226226

227-
(* taken from https://github.com/BuckleScript/ocaml/blob/d4144647d1bf9bc7dc3aadc24c25a7efa3a67915/parsing/location.ml#L380 *)
227+
(* taken from https://github.com/rescript-lang/ocaml/blob/d4144647d1bf9bc7dc3aadc24c25a7efa3a67915/parsing/location.ml#L380 *)
228228
(* This is the error report entry point. We'll replace the default reporter with this one. *)
229229
let super_error_reporter ppf ~src ~startPos ~endPos ~msg =
230230
setup_colors ();

syntax/tests/idempotency/bs-webapi/src/Webapi/Webapi__Canvas/Webapi__Canvas__Canvas2d.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ type style(_) =
103103
[@bs.set] external setStrokeStyle : (t, 'a) => unit = "strokeStyle";
104104

105105
/* in re unused warnings
106-
awaiting release of https://github.com/bloomberg/bucklescript/issues/1656
106+
awaiting release of https://github.com/rescript-lang/rescript-compiler/issues/1656
107107
to just use [@@bs.set] directly with an ignored (style a) */
108108
let setStrokeStyle = (type a, ctx: t, _: style(a), v: a) =>
109109
setStrokeStyle(ctx, v);

syntax/tests/idempotency/bucklescript/belt/belt.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

2525

26-
(** A stdlib shipped with BuckleScript
26+
(** A stdlib shipped with ReScript
2727
2828
This stdlib is still in {i beta} but we encourage you to try it out and
2929
give us feedback.
3030
3131
{b Motivation }
3232
33-
The motivation for creating such library is to provide BuckleScript users a
33+
The motivation for creating such library is to provide ReScript users a
3434
better end-to-end user experience, since the original OCaml stdlib was not
3535
written with JS in mind. Below is a list of areas this lib aims to
3636
improve:

syntax/tests/idempotency/bucklescript/belt/belt_Id.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module MakeComparable (M : sig
5959
struct
6060
type identity
6161
type t = M.t
62-
(* see https://github.com/BuckleScript/bucklescript/pull/2589/files/5ef875b7665ee08cfdc59af368fc52bac1fe9130#r173330825 *)
62+
(* see https://github.com/rescript-lang/rescript-compiler/pull/2589/files/5ef875b7665ee08cfdc59af368fc52bac1fe9130#r173330825 *)
6363
let cmp =
6464
let cmp = M.cmp in fun[@bs] a b -> cmp a b
6565
end

0 commit comments

Comments
 (0)