File tree 3 files changed +15
-12
lines changed 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -292,15 +292,16 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
292
292
pexp_desc =
293
293
Pexp_constant
294
294
(Pconst_string
295
- (s, ((None | Some " json" ) as dec)));
295
+ (s, ((None | Some " json" | Some " *j " ) as dec)));
296
296
pexp_loc;
297
297
_;
298
298
},
299
299
_ );
300
300
_;
301
301
};
302
- ] ->
303
- if dec = None then st := Some (Str s)
302
+ ]
303
+ ->
304
+ if dec = None || dec = Some " *j" then st := Some (Str s)
304
305
else (
305
306
(match
306
307
Classify_function. classify
@@ -313,7 +314,7 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
313
314
Location. raise_errorf ~loc: pexp_loc
314
315
" an object literal expected" );
315
316
st := Some (Js_literal_str s))
316
- | _ -> Bs_syntaxerr. err loc Expect_int_or_string_or_json_literal
317
+ | _ -> Bs_syntaxerr. err loc ( Expect_int_or_string_or_json_literal )
317
318
)
318
319
| Some v -> st := Some (Int v))
319
320
else Bs_syntaxerr. err loc Duplicated_bs_as
Original file line number Diff line number Diff line change @@ -254524,15 +254524,16 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
254524
254524
pexp_desc =
254525
254525
Pexp_constant
254526
254526
(Pconst_string
254527
- (s, ((None | Some "json") as dec)));
254527
+ (s, ((None | Some "json"| Some "*j" ) as dec)));
254528
254528
pexp_loc;
254529
254529
_;
254530
254530
},
254531
254531
_ );
254532
254532
_;
254533
254533
};
254534
- ] ->
254535
- if dec = None then st := Some (Str s)
254534
+ ]
254535
+ ->
254536
+ if dec = None || dec = Some "*j" then st := Some (Str s)
254536
254537
else (
254537
254538
(match
254538
254539
Classify_function.classify
@@ -254545,7 +254546,7 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
254545
254546
Location.raise_errorf ~loc:pexp_loc
254546
254547
"an object literal expected");
254547
254548
st := Some (Js_literal_str s))
254548
- | _ -> Bs_syntaxerr.err loc Expect_int_or_string_or_json_literal
254549
+ | _ -> Bs_syntaxerr.err loc ( Expect_int_or_string_or_json_literal)
254549
254550
)
254550
254551
| Some v -> st := Some (Int v))
254551
254552
else Bs_syntaxerr.err loc Duplicated_bs_as
Original file line number Diff line number Diff line change @@ -258595,15 +258595,16 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
258595
258595
pexp_desc =
258596
258596
Pexp_constant
258597
258597
(Pconst_string
258598
- (s, ((None | Some "json") as dec)));
258598
+ (s, ((None | Some "json"| Some "*j" ) as dec)));
258599
258599
pexp_loc;
258600
258600
_;
258601
258601
},
258602
258602
_ );
258603
258603
_;
258604
258604
};
258605
- ] ->
258606
- if dec = None then st := Some (Str s)
258605
+ ]
258606
+ ->
258607
+ if dec = None || dec = Some "*j" then st := Some (Str s)
258607
258608
else (
258608
258609
(match
258609
258610
Classify_function.classify
@@ -258616,7 +258617,7 @@ let iter_process_bs_string_or_int_as (attrs : Parsetree.attributes) =
258616
258617
Location.raise_errorf ~loc:pexp_loc
258617
258618
"an object literal expected");
258618
258619
st := Some (Js_literal_str s))
258619
- | _ -> Bs_syntaxerr.err loc Expect_int_or_string_or_json_literal
258620
+ | _ -> Bs_syntaxerr.err loc ( Expect_int_or_string_or_json_literal)
258620
258621
)
258621
258622
| Some v -> st := Some (Int v))
258622
258623
else Bs_syntaxerr.err loc Duplicated_bs_as
You can’t perform that action at this time.
0 commit comments