Skip to content

Commit 7b2a112

Browse files
committed
watcher for rescript syntax
1 parent 3005b70 commit 7b2a112

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

jscomp/test/hello_res.res

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1+
@@config({
2+
flags : [
3+
"-dparsetree"
4+
]
5+
})
16

27
let b = List.length(list{1,2,3})
38
let a = b - 1
4-
Js.log ("hello, res")
9+
Js.log ("hello, res")
10+
11+
type t = { "x" : int }
12+
13+
14+
15+
let u : t = {"x" : 3 }
16+
17+
let h = u["x"]

scripts/tasks.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ function onSourceChange(eventType, filename) {
8787
filename.endsWith(".mli") ||
8888
filename.endsWith(".json") ||
8989
filename.endsWith(".re") ||
90-
filename.endsWith(".rei")
90+
filename.endsWith(".rei") ||
91+
filename.endsWith(".res") ||
92+
filename.endsWith(".resi")
9193
) {
9294
rebuild();
9395
}

0 commit comments

Comments
 (0)