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
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/sass-3.2.19/lib/sass/scss/script_lexer.rb
sass-3.4.21 lib/sass/scss/script_lexer.rb
sass-4.0.0.alpha.1 lib/sass/scss/script_lexer.rb
sass-3.4.20 lib/sass/scss/script_lexer.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/sass-3.4.18/lib/sass/scss/script_lexer.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/sass-3.4.19/lib/sass/scss/script_lexer.rb
sass-3.4.19 lib/sass/scss/script_lexer.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.19/lib/sass/scss/script_lexer.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.18/lib/sass/scss/script_lexer.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/script_lexer.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.15/lib/sass/scss/script_lexer.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.4/vendor/sass/lib/sass/scss/script_lexer.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.17/lib/sass/scss/script_lexer.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.5/vendor/sass/lib/sass/scss/script_lexer.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.5/vendor/sass/lib/sass/scss/script_lexer.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.17/lib/sass/scss/script_lexer.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.15/lib/sass/scss/script_lexer.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/scss/script_lexer.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.18/lib/sass/scss/script_lexer.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.4/vendor/sass/lib/sass/scss/script_lexer.rb