src/tokenize.js
function consumeWord (css, start) {
    let next = start;
    let code;
    do {
        code = css.charCodeAt(next);
        if (wordDelimiters[code]) {
            return next - 1;
        } else if (code === t.backslash) {
            next = consumeEscape(css, next) + 1;
        } else {
            // All other characters are part of the word
            next++;
        }
    } while (next < css.length);
    return next - 1;
}
function consumeWord (css, start) {
    let next = start;
    let code;
    do {
        code = css.charCodeAt(next);
        if (wordDelimiters[code]) {
            return next - 1;
        } else if (code === t.backslash) {
            next = consumeEscape(css, next) + 1;
        } else {
            // All other characters are part of the word
            next++;
        }
    } while (next < css.length);
    return next - 1;
}
function consumeWord ( css , start ) { let next = start ; let code ; do { code = css . charCodeAt ( next ) ; if ( wordDelimiters [ code ] ) { return next - 1 ; } else if ( code === t . backslash ) { next = consumeEscape ( css , next ) + 1 ; } else { // All other characters are part of the word next ++ ; } } while ( next < css . length ) ; return next - 1 ; }
Returns the last index of the bar css word
@param {string} css The string in which the word begins
@param {number} start The index into the string where word's first letter occurs
Returns the last index of the bar css word