File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -444,11 +444,11 @@ class Parser {
444444 if ( opPriority .get (op ) < 0 )
445445 return makeUnop (op ,parseExpr ());
446446 if ( op == " <" ) {
447- var start = tokenMax + 1 ;
447+ var start = readPos - 1 ;
448448 var ident = getIdent ();
449449 if ( #if hscriptPos tokens .length != 0 #else ! tokens .isEmpty () #end )
450450 throw " assert" ;
451- if ( tokenMin == start ) {
451+ if ( readPos == start + ident . length + 1 ) {
452452 var endTag = " </" + ident + " >" ;
453453 var end = input .indexOf (endTag , readPos );
454454 if ( end < 0 ) {
@@ -459,12 +459,12 @@ class Parser {
459459 readPos = end + endTag .length ;
460460 char = - 1 ;
461461 start -- ;
462- var end = readPos + offset - 1 ;
462+ var end = readPos - 1 ;
463463 #if hscriptPos
464- tokenMin = start ;
465- tokenMax = end ;
464+ tokenMin = start + offset ;
465+ tokenMax = end + offset ;
466466 #end
467- var str = input .substr (start - offset ,end - tokenMin + 1 );
467+ var str = input .substr (start ,end - start + 1 );
468468 return mk (EMeta (" :markup" ,[],mk (EConst (CString (str )))));
469469 }
470470 }
You can’t perform that action at this time.
0 commit comments