function bracketedAligned(context) {
    let tree = context.node;
    let openToken = tree.childAfter(tree.from), last = tree.lastChild;
    if (!openToken)
        return null;
    let sim = context.options.simulateBreak;
    let openLine = context.state.doc.lineAt(openToken.from);
    let lineEnd = sim == null || sim <= openLine.from ? openLine.to : Math.min(openLine.to, sim);
    for (let pos = openToken.to;;) {
        let next = tree.childAfter(pos);
        if (!next || next == last)
            return null;
        if (!next.type.isSkipped)
            return next.from < lineEnd ? openToken : null;
        pos = next.to;
    }
}
// if so, return the opening token.
if so, return the opening token.
if so return the opening token .
function bracketedAligned(context) {
    let tree = context.node;
    let openToken = tree.childAfter(tree.from), last = tree.lastChild;
    if (!openToken)
        return null;
    let sim = context.options.simulateBreak;
    let openLine = context.state.doc.lineAt(openToken.from);
    let lineEnd = sim == null || sim <= openLine.from ? openLine.to : Math.min(openLine.to, sim);
    for (let pos = openToken.to;;) {
        let next = tree.childAfter(pos);
        if (!next || next == last)
            return null;
        if (!next.type.isSkipped)
            return next.from < lineEnd ? openToken : null;
        pos = next.to;
    }
}
function bracketedAligned ( context ) { let tree = context . node ; let openToken = tree . childAfter ( tree . from ) , last = tree . lastChild ; if ( ! openToken ) return null ; let sim = context . options . simulateBreak ; let openLine = context . state . doc . lineAt ( openToken . from ) ; let lineEnd = sim == null || sim <= openLine . from ? openLine . to : Math . min ( openLine . to , sim ) ; for ( let pos = openToken . to ; ; ) { let next = tree . childAfter ( pos ) ; if ( ! next || next == last ) return null ; if ( ! next . type . isSkipped ) return next . from < lineEnd ? openToken : null ; pos = next . to ; } }
if so, return the opening token.
if so return the opening token .