class Sass::Script::CssParser
This is a subclass of {Parser} for use in parsing plain CSS
properties.
Private Instance Methods
interpolation(first: nil, inner: :space)
click to toggle source
Short-circuit all the SassScript-only productions
# File lib/sass/script/css_parser.rb, line 27 def interpolation(first: nil, inner: :space) first || send(inner) end
lexer_class()
click to toggle source
@private
# File lib/sass/script/css_parser.rb, line 13 def lexer_class; CssLexer; end
string()
click to toggle source
# File lib/sass/script/css_parser.rb, line 19 def string tok = try_tok(:string) return number unless tok return if @lexer.peek && @lexer.peek.type == :begin_interpolation literal_node(tok.value, tok.source_range) end
Also aliased as: paren