@@ -259,27 +259,16 @@ let f t x =
259259 if (val$ 0 && ! val$ 0 [2 ]){
260260 var x$ 1 = val$ 0 [1 ], x$ 0 = x$ 1 ;
261261 for (;;){
262- <<<<<<< HEAD
263262 a :
264263 {
265264 try {var val = caml_call2(Stdlib_Hashtbl [6 ], t, x$ 0 );}
266265 catch(_e_){
267266 var _a_ = caml_wrap_exception(_e_);
268- if (_a_ != = Stdlib [3 ]) throw caml_maybe_attach_backtrace(_a_, 0 );
267+ if (! Object. is(_a_, Stdlib [3 ]))
268+ throw caml_maybe_attach_backtrace(_a_, 0 );
269269 var _d_ = 0 ;
270270 break a;
271271 }
272- =======
273- var switch$ 0 = 0 ;
274- try {var val = caml_call2(Stdlib_Hashtbl [6 ], t, x$ 0 ); switch$ 0 = 1 ;}
275- catch(_e_){
276- var _a_ = caml_wrap_exception(_e_);
277- if (! Object. is(_a_, Stdlib [3 ])) throw caml_maybe_attach_backtrace(_a_, 0 );
278- var _d_ = 0 ;
279- }
280- if (switch$ 0 ){
281- var switch$ 1 = 0 ;
282- >>>>>>> c650ced771 (promote)
283272 if (val && ! val[2 ]){
284273 var y = val[1 ], _b_ = y === (x$ 0 + 1 | 0 ) ? 1 : 0 ;
285274 if (_b_){var _d_ = _b_; break a;}
@@ -507,9 +496,9 @@ let add_substitute =
507496 var lim = caml_ml_string_length(s), k = k$ 2 , stop = new_start;
508497 for (;;){
509498 if (lim < = stop) throw caml_maybe_attach_backtrace(Stdlib [8 ], 1 );
510- if (caml_string_get(s, stop) === opening)
499+ if (Object. is( caml_string_get(s, stop), opening) )
511500 var i = stop + 1 | 0 , k$ 0 = k + 1 | 0 , k = k$ 0 , stop = i;
512- else if (caml_string_get(s, stop) === closing){
501+ else if (Object. is( caml_string_get(s, stop), closing) ){
513502 if (0 === k) break;
514503 var i$ 0 = stop + 1 | 0 , k$ 1 = k - 1 | 0 , k = k$ 1 , stop = i$ 0 ;
515504 }
@@ -537,79 +526,6 @@ let add_substitute =
537526 caml_call2(add_char, b, previous$ 0 );
538527 var i$ 8 = i$ 4 + 1 | 0 , previous = previous$ 0 , i$ 4 = i$ 8 ;
539528 }
540- <<<<<<< HEAD
541- =======
542- if (92 === previous){
543- caml_call2(add_char, b, previous$ 0 );
544- var i$ 5 = i$ 4 + 1 | 0 , previous = 32 , i$ 4 = i$ 5 ;
545- continue;
546- }
547- var start$ 0 = i$ 4 + 1 | 0 ;
548- if (lim$ 1 < = start$ 0 ) throw caml_maybe_attach_backtrace(Stdlib [8 ], 1 );
549- var opening = caml_string_get(s, start$ 0 ), switch$ 0 = 0 ;
550- if (40 != = opening && 123 != = opening){
551- var start = start$ 0 + 1 | 0 , lim$ 0 = caml_ml_string_length(s), i$ 2 = start;
552- for (;;){
553- if (lim$ 0 < = i$ 2 )
554- var stop$ 0 = lim$ 0 ;
555- else {
556- var match = caml_string_get(s, i$ 2 ), switch$ 1 = 0 ;
557- if (91 < = match ){
558- if (97 < = match ){
559- if (123 > match ) switch$ 1 = 1 ;
560- }
561- else if (95 === match ) switch$ 1 = 1 ;
562- }
563- else if (58 < = match ){
564- if (65 < = match ) switch$ 1 = 1 ;
565- }
566- else if (48 < = match ) switch$ 1 = 1 ;
567- if (switch$ 1 ){var i$ 3 = i$ 2 + 1 | 0 , i$ 2 = i$ 3 ; continue;}
568- var stop$ 0 = i$ 2 ;
569- }
570- var
571- match $ 0 =
572- [0 ,
573- caml_call3(Stdlib_String [15 ], s, start$ 0 , stop$ 0 - start$ 0 | 0 ),
574- stop$ 0 ];
575- switch$ 0 = 1 ;
576- break;
577- }
578- }
579- if (! switch$ 0 ){
580- var new_start = start$ 0 + 1 | 0 , k$ 2 = 0 ;
581- if (40 === opening)
582- var closing = 41 ;
583- else {
584- if (123 != = opening)
585- throw caml_maybe_attach_backtrace([0 , Assert_failure , _a_], 1 );
586- var closing = 125 ;
587- }
588- var lim = caml_ml_string_length(s), k = k$ 2 , stop = new_start;
589- for (;;){
590- if (lim < = stop) throw caml_maybe_attach_backtrace(Stdlib [8 ], 1 );
591- if (Object. is(caml_string_get(s, stop), opening)){
592- var i = stop + 1 | 0 , k$ 0 = k + 1 | 0 , k = k$ 0 , stop = i;
593- continue;
594- }
595- if (! Object. is(caml_string_get(s, stop), closing)){var i$ 1 = stop + 1 | 0 , stop = i$ 1 ; continue;}
596- if (0 != = k){
597- var i$ 0 = stop + 1 | 0 , k$ 1 = k - 1 | 0 , k = k$ 1 , stop = i$ 0 ;
598- continue;
599- }
600- var
601- match $ 0 =
602- [0 ,
603- caml_call3
604- (Stdlib_String [15 ], s, new_start, (stop - start$ 0 | 0 ) - 1 | 0 ),
605- stop + 1 | 0 ];
606- break;
607- }
608- }
609- var next_i = match $ 0 [2 ], ident = match $ 0 [1 ];
610- caml_call2(add_string, b, caml_call1(f, ident));
611- var previous = 32 , i$ 4 = next_i;
612- >>>>>>> c650ced771 (promote)
613529 }
614530 }
615531 // end | }]
0 commit comments