vendor/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb
# Expose for the SASS parser.
Expose for the SASS parser.
Expose for the SASS parser .
def value!(css_variable = false)
        if tok?(/\{/)
          str = Sass::Script::Tree::Literal.new(Sass::Script::Value::String.new(""))
          str.line = source_position.line
          str.source_range = range(source_position)
          return str
        end
        start_pos = source_position
        if (val = tok(STATIC_VALUE, true))
          str = Sass::Script::Tree::Literal.new(Sass::Script::Value::String.new(val.strip))
          str.line = start_pos.line
          str.source_range = range(start_pos)
          return str
        end
        sass_script(:parse, css_variable)
      end
def value! ( css_variable = false ) if tok? ( / \{ / ) str = Sass :: Script :: Tree :: Literal . new ( Sass :: Script :: Value :: String . new ( "" ) ) str . line = source_position . line str . source_range = range ( source_position ) return str end start_pos = source_position if ( val = tok ( STATIC_VALUE , true ) ) str = Sass :: Script :: Tree :: Literal . new ( Sass :: Script :: Value :: String . new ( val . strip ) ) str . line = start_pos . line str . source_range = range ( start_pos ) return str end sass_script ( :parse , css_variable ) end
Expose for the SASS parser.
Expose for the SASS parser .
# This is a bit of a dirty trick: # if the value is completely static, # we don't parse it at all, and instead return a plain old string # containing the value. # This results in a dramatic speed increase.
css_variable
<not_specific>