Skip to content

Commit 0f23f76

Browse files
committed
document special template literal prefixes
1 parent f7a72dc commit 0f23f76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jscomp/syntax/src/res_core.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,8 @@ and parseBinaryExpr ?(context = OrdinaryExpr) ?a p prec =
22592259

22602260
and parseTemplateExpr ?(prefix = "js") p =
22612261
let partPrefix =
2262+
(* we could stop treating js and j prefix as something special
2263+
for json, we would first need to remove @as(json`true`) feature *)
22622264
match prefix with
22632265
| "js" | "j" | "json" -> Some prefix
22642266
| _ -> None

0 commit comments

Comments
 (0)