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

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

    // Add full comment (including `/*` and `*/`) to the list of tokens:
    var comment = css.substring(start, pos + 1);
    pushToken(TokenType.CommentML, comment, col);

    var newlines = comment.split('\n');
    if (newlines.length > 1) {
      ln += newlines.length - 1;
      col = newlines[newlines.length - 1].length;
    } else {
      col += (pos - start);
    }
  }
function parseMLComment(css) {
    var start = pos;

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

    // Add full comment (including `/*` and `*/`) to the list of tokens:
    var comment = css.substring(start, pos + 1);
    pushToken(TokenType.CommentML, comment, col);

    var newlines = comment.split('\n');
    if (newlines.length > 1) {
      ln += newlines.length - 1;
      col = newlines[newlines.length - 1].length;
    } else {
      col += (pos - start);
    }
  }
function parseMLComment ( css ) { var start = pos ; // Read the string until we meet `*/`. // Since we already know first 2 characters (`/*`), start reading // from `pos + 2`: for ( pos += 2 ; pos < css . length ; pos ++ ) { if ( css . charAt ( pos ) === '*' && css . charAt ( pos + 1 ) === '/' ) { pos ++ ; break ; } } // Add full comment (including `/*` and `*/`) to the list of tokens: var comment = css . substring ( start , pos + 1 ) ; pushToken ( TokenType . CommentML , comment , col ) ; var newlines = comment . split ( '\n' ) ; if ( newlines . length > 1 ) { ln += newlines . length - 1 ; col = newlines [ newlines . length - 1 ] . length ; } else { col += ( pos - start ) ; } }
Parse a multiline comment
@param {string} css Unparsed part of CSS string
Parse a multiline comment