src/scss/tokenizer.js
function parseSLComment(css) {
    var start = pos;

    // Read the string until we meet line break.
    // Since we already know first 2 characters (`//`), start reading
    // from `pos + 2`:
    for (pos += 2; pos < css.length; pos++) {
      if (css.charAt(pos) === '\n' || css.charAt(pos) === '\r') {
        break;
      }
    }

    // Add comment (including `//` and line break) to the list of tokens:
    pushToken(TokenType.CommentSL, css.substring(start, pos--), col);
    col += pos - start;
  }
function parseSLComment(css) {
    var start = pos;

    // Read the string until we meet line break.
    // Since we already know first 2 characters (`//`), start reading
    // from `pos + 2`:
    for (pos += 2; pos < css.length; pos++) {
      if (css.charAt(pos) === '\n' || css.charAt(pos) === '\r') {
        break;
      }
    }

    // Add comment (including `//` and line break) to the list of tokens:
    pushToken(TokenType.CommentSL, css.substring(start, pos--), col);
    col += pos - start;
  }
function parseSLComment ( css ) { var start = pos ; // Read the string until we meet line break. // Since we already know first 2 characters (`//`), start reading // from `pos + 2`: for ( pos += 2 ; pos < css . length ; pos ++ ) { if ( css . charAt ( pos ) === '\n' || css . charAt ( pos ) === '\r' ) { break ; } } // Add comment (including `//` and line break) to the list of tokens: pushToken ( TokenType . CommentSL , css . substring ( start , pos -- ) , col ) ; col += pos - start ; }
Parse a single line comment
@param {string} css Unparsed part of CSS string
Parse a single line comment