|
@@ -97,8 +97,7 @@ c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{b:/\{/,e:/\}/,i:/:/}]}});
|
|
}
|
|
}
|
|
} );
|
|
} );
|
|
|
|
|
|
- // lofi xbrowser Promise.resolve()
|
|
|
|
- return { then: function( resolve ) { resolve(); }};
|
|
|
|
|
|
+ return Promise.resolve();
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
@@ -139,10 +138,13 @@ c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{b:/\{/,e:/\}/,i:/:/}]}});
|
|
|
|
|
|
linesToHighlight.split( ',' ).forEach( function( lineNumbers ) {
|
|
linesToHighlight.split( ',' ).forEach( function( lineNumbers ) {
|
|
|
|
|
|
|
|
+ // Avoid failures becase of whitespace
|
|
|
|
+ lineNumbers = lineNumbers.replace( /\s/g, '' );
|
|
|
|
+
|
|
// Ensure that we looking at a valid slide number (1 or 1-2)
|
|
// Ensure that we looking at a valid slide number (1 or 1-2)
|
|
if( /^[\d-]+$/.test( lineNumbers ) ) {
|
|
if( /^[\d-]+$/.test( lineNumbers ) ) {
|
|
|
|
|
|
- lineNumbers = lineNumbers.split( '-' )
|
|
|
|
|
|
+ lineNumbers = lineNumbers.split( '-' );
|
|
|
|
|
|
var lineStart = lineNumbers[0];
|
|
var lineStart = lineNumbers[0];
|
|
var lineEnd = lineNumbers[1] || lineStart;
|
|
var lineEnd = lineNumbers[1] || lineStart;
|