vendor/bundle/ruby/2.5.0/gems/sass-3.7.2/lib/sass/scss/parser.rb
# Expose for the SASS parser.
Expose for the SASS parser.
Expose for the SASS parser .
def _interp_string(type)
        start = tok(Sass::Script::Lexer::STRING_REGULAR_EXPRESSIONS[type][false])
        return unless start
        res = [start]
        mid_re = Sass::Script::Lexer::STRING_REGULAR_EXPRESSIONS[type][true]
        while @scanner[2] == '#{'
          @scanner.pos -= 2 
          res.last.slice!(-2..-1)
          res << expr!(:interpolation) << tok(mid_re)
        end
        res
      end
def _interp_string ( type ) start = tok ( Sass :: Script :: Lexer :: STRING_REGULAR_EXPRESSIONS [ type ] [ false ] ) return unless start res = [ start ] mid_re = Sass :: Script :: Lexer :: STRING_REGULAR_EXPRESSIONS [ type ] [ true ] while @scanner [ 2 ] == '#{' @scanner . pos -= 2 res . last . slice! ( - 2 .. - 1 ) res << expr! ( :interpolation ) << tok ( mid_re ) end res end
Expose for the SASS parser.
Expose for the SASS parser .
# @scanner[2].empty? means we've started an interpolated section # Don't consume the #{
type
<not_specific>