Sha256: 38efa0200af12c2d2c2696c804e9308e8fe602889e1929acdf317acebaa53824
Contents?: true
Size: 649 Bytes
Versions: 765
Compression:
Stored size: 649 Bytes
Contents
module Sass module Script # This is a subclass of {Lexer} for use in parsing plain CSS properties. # # @see Sass::SCSS::CssParser class CssLexer < Lexer private def token important || super end def string(re, *args) if re == :uri return unless uri = scan(URI) return [:string, Script::String.new(uri)] end return unless scan(STRING) [:string, Script::String.new((@scanner[1] || @scanner[2]).gsub(/\\(['"])/, '\1'), :string)] end def important return unless s = scan(IMPORTANT) [:raw, s] end end end end
Version data entries
765 entries across 478 versions & 18 rubygems