src/scanner.js
function readComment(sr) {
    let start = sr.getPos() - 2;
    sr.expect("--");
    if (!sr.goto("-->")) {
        throw Tools.syntaxError("Unterminated comment", start);
    }
    sr.expect("-->");
    return { type: "comment", start };
}
function readComment(sr) {
    let start = sr.getPos() - 2;
    sr.expect("--");
    if (!sr.goto("-->")) {
        throw Tools.syntaxError("Unterminated comment", start);
    }
    sr.expect("-->");
    return { type: "comment", start };
}
function readComment ( sr ) { let start = sr . getPos ( ) - 2 ; sr . expect ( "--" ) ; if ( ! sr . goto ( "-->" ) ) { throw Tools . syntaxError ( "Unterminated comment" , start ) ; } sr . expect ( "-->" ) ; return { type : "comment" , start } ; }
object => object
object = > object