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.1.8 lib/sass/scss/script_lexer.rb
sass-3.2.0.alpha.21 lib/sass/scss/script_lexer.rb
haml-3.1.3 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.7 lib/sass/scss/script_lexer.rb
sass-3.1.6 lib/sass/scss/script_lexer.rb
sass-3.1.5 lib/sass/scss/script_lexer.rb
haml-3.2.0.alpha.8 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.4 lib/sass/scss/script_lexer.rb
sass-3.2.0.alpha.11 lib/sass/scss/script_lexer.rb
sass-3.1.3 lib/sass/scss/script_lexer.rb
sass-3.2.0.alpha.9 lib/sass/scss/script_lexer.rb
sass-3.2.0.alpha.8 lib/sass/scss/script_lexer.rb
haml-3.2.0.alpha.5 vendor/sass/lib/sass/scss/script_lexer.rb
haml-3.2.0.alpha.4 vendor/sass/lib/sass/scss/script_lexer.rb
haml-3.1.2 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.2 lib/sass/scss/script_lexer.rb
sass-3.2.0.alpha.7 lib/sass/scss/script_lexer.rb
sass-3.2.0.alpha.6 lib/sass/scss/script_lexer.rb
haml-3.2.0.alpha.3 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.2.0.alpha.4 lib/sass/scss/script_lexer.rb