Sha256: b34020223e6934e3f653e2c6755d17742b7286d71dfb90ae56bdcf7b7721d1e1

Contents?: true

Size: 422 Bytes

Versions: 635

Compression:

Stored size: 422 Bytes

Contents

module Sass
  module SCSS
    # A mixin for subclasses of {Sass::Script::Lexer}
    # that makes them usable by {SCSS::Parser} to parse SassScript.
    # In particular, the lexer doesn't support `!` for a variable prefix.
    module ScriptLexer
      private

      def variable
        return [:raw, "!important"] if scan(Sass::SCSS::RX::IMPORTANT)
        _variable(Sass::SCSS::RX::VARIABLE)
      end
    end
  end
end

Version data entries

635 entries across 346 versions & 18 rubygems

Version Path
sass-3.2.0.alpha.3 lib/sass/scss/script_lexer.rb
sass-3.1.1 lib/sass/scss/script_lexer.rb
haml-3.2.0.alpha.2 vendor/sass/lib/sass/scss/script_lexer.rb
haml-3.1.1 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.0 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.263 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.262 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.261 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.259 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.256 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.254 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.253 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.252 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.249 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.246 lib/sass/scss/script_lexer.rb