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.3.5 lib/sass/scss/script_lexer.rb
sass-3.2.19 lib/sass/scss/script_lexer.rb
sass-3.2.18 lib/sass/scss/script_lexer.rb
sass-3.3.4 lib/sass/scss/script_lexer.rb
sass-3.2.17 lib/sass/scss/script_lexer.rb
sass-3.2.16 lib/sass/scss/script_lexer.rb
sass-3.3.3 lib/sass/scss/script_lexer.rb
sass-3.3.2 lib/sass/scss/script_lexer.rb
sass-3.3.1 lib/sass/scss/script_lexer.rb
sass-3.3.0 lib/sass/scss/script_lexer.rb
sass-3.2.15 lib/sass/scss/script_lexer.rb
sass-3.3.0.rc.6 lib/sass/scss/script_lexer.rb
sass-3.3.0.rc.5 lib/sass/scss/script_lexer.rb
sass-3.3.0.rc.4 lib/sass/scss/script_lexer.rb
sass-3.3.0.rc.3 lib/sass/scss/script_lexer.rb
sass-3.2.14 lib/sass/scss/script_lexer.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/sass-3.2.13/lib/sass/scss/script_lexer.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/sass-3.2.12/lib/sass/scss/script_lexer.rb
sass-3.2.13 lib/sass/scss/script_lexer.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/sass-3.2.12/lib/sass/scss/script_lexer.rb