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.4 lib/sass/scss/script_lexer.rb
sass-3.1.0.alpha.2 lib/sass/scss/script_lexer.rb
haml-edge-3.1.79 lib/sass/scss/script_lexer.rb
haml-edge-3.1.78 lib/sass/scss/script_lexer.rb
haml-edge-3.1.77 lib/sass/scss/script_lexer.rb
haml-edge-3.1.76 lib/sass/scss/script_lexer.rb
haml-edge-3.1.75 lib/sass/scss/script_lexer.rb
haml-edge-3.1.74 lib/sass/scss/script_lexer.rb
haml-edge-3.1.73 lib/sass/scss/script_lexer.rb
haml-edge-3.1.72 lib/sass/scss/script_lexer.rb
haml-edge-3.1.71 lib/sass/scss/script_lexer.rb
haml-3.0.18 lib/sass/scss/script_lexer.rb
haml-edge-3.1.70 lib/sass/scss/script_lexer.rb
haml-edge-3.1.69 lib/sass/scss/script_lexer.rb
haml-edge-3.1.68 lib/sass/scss/script_lexer.rb
haml-edge-3.1.67 lib/sass/scss/script_lexer.rb
haml-edge-3.1.66 lib/sass/scss/script_lexer.rb
haml-edge-3.1.65 lib/sass/scss/script_lexer.rb
haml-edge-3.1.64 lib/sass/scss/script_lexer.rb
haml-3.0.17 lib/sass/scss/script_lexer.rb