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
haml-edge-3.1.63 lib/sass/scss/script_lexer.rb
haml-edge-3.1.62 lib/sass/scss/script_lexer.rb
haml-edge-3.1.61 lib/sass/scss/script_lexer.rb
haml-edge-3.1.60 lib/sass/scss/script_lexer.rb
haml-edge-3.1.59 lib/sass/scss/script_lexer.rb
haml-3.0.16 lib/sass/scss/script_lexer.rb
haml-edge-3.1.58 lib/sass/scss/script_lexer.rb
haml-edge-3.1.57 lib/sass/scss/script_lexer.rb
haml-edge-3.1.56 lib/sass/scss/script_lexer.rb
haml-edge-3.1.55 lib/sass/scss/script_lexer.rb
haml-edge-3.1.54 lib/sass/scss/script_lexer.rb
haml-edge-3.1.53 lib/sass/scss/script_lexer.rb
haml-edge-3.1.52 lib/sass/scss/script_lexer.rb
haml-edge-3.1.51 lib/sass/scss/script_lexer.rb
haml-3.0.15 lib/sass/scss/script_lexer.rb
haml-edge-3.1.50 lib/sass/scss/script_lexer.rb
haml-3.0.14 lib/sass/scss/script_lexer.rb
haml-edge-3.1.49 lib/sass/scss/script_lexer.rb
haml-3.0.13 lib/sass/scss/script_lexer.rb
haml-edge-3.1.48 lib/sass/scss/script_lexer.rb