node_modules/gulp-sass/node_modules/node-sass/src/libsass/src/parser.cpp
// convenience function for block parsing
// will create a new block ad-hoc for you
// this is the base block parsing function
convenience function for block parsing
will create a new block ad-hoc for you
this is the base block parsing function
convenience function for block parsing will create a new block ad - hoc for you this is the base block parsing function
Block* Parser::parse_css_block(bool is_root)
  {
    if (!lex_css < exactly<'{'> >()) {
      css_error("Invalid CSS", " after ", ": expected \"{\", was ");
    }
    Block* block = SASS_MEMORY_NEW(ctx.mem, Block, pstate, 0, is_root);
    block_stack.push_back(block);
    if (!parse_block_nodes()) css_error("Invalid CSS", " after ", ": expected \"}\", was ");;
    if (!lex_css < exactly<'}'> >()) {
      css_error("Invalid CSS", " after ", ": expected \"}\", was ");
    }
    block->update_pstate(pstate);
    block_stack.pop_back();
    return block;
  }
Block * Parser :: parse_css_block ( bool is_root ) { if ( ! lex_css < exactly < ' ' > > ( ) ) { css_error ( " " , " " , " \" \" " ) ; } Block * block = SASS_MEMORY_NEW ( ctx . mem , Block , pstate , 0 , is_root ) ; block_stack . push_back ( block ) ; if ( ! parse_block_nodes ( ) ) css_error ( " " , " " , " \" \" " ) ; ; if ( ! lex_css < exactly < ' ' > > ( ) ) { css_error ( " " , " " , " \" \" " ) ; } block -> update_pstate ( pstate ) ; block_stack . pop_back ( ) ; return block ; }
convenience function for block parsing
will create a new block ad-hoc for you
this is the base block parsing function
convenience function for block parsing will create a new block ad - hoc for you this is the base block parsing function
// parse comments before block // lex < optional_css_comments >(); // lex mandatory opener or error out // create new block and push to the selector stack // update for end position // parse comments before block // lex < optional_css_comments >();