Sha256: 7a6dd4a69c49130119f0b5805db005ae97f01b9d2d5c01136a8fedf175d1db24

Contents?: true

Size: 430 Bytes

Versions: 219

Compression:

Stored size: 430 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::IDENT})/)
      end
    end
  end
end

Version data entries

219 entries across 218 versions & 4 rubygems

Version Path
sass-3.1.0.alpha.32 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.31 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.30 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.29 lib/sass/scss/script_lexer.rb
haml-3.0.24 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.28 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.27 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.26 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.25 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.24 lib/sass/scss/script_lexer.rb
haml-3.0.23 lib/sass/scss/script_lexer.rb
haml-3.1.0.alpha.30 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.23 lib/sass/scss/script_lexer.rb
haml-3.1.0.alpha.28 vendor/sass/lib/sass/scss/script_lexer.rb
haml-3.1.0.alpha.27 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.22 lib/sass/scss/script_lexer.rb
haml-3.1.0.alpha.26 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.21 lib/sass/scss/script_lexer.rb
haml-3.1.0.alpha.23 vendor/sass/lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.20 lib/sass/scss/script_lexer.rb