Sha256: 8da3f3a6fde000cd1f27fb4c85cf9a37032cf41f2cfbc2c7c1b45123a1a88607

Contents?: true

Size: 933 Bytes

Versions: 8

Compression:

Stored size: 933 Bytes

Contents

require 'sass/script/css_parser'

module Sass
  module SCSS
    class CssParser < Parser
      private

      def variable; nil; end
      def parent_selector; nil; end
      def interpolation; nil; end
      def interp_string; tok(STRING); end
      def expected_property_separator; '":"'; end
      def use_css_import?; true; end

      def special_directive(name)
        return unless name == 'media' || name == 'import'
        super
      end

      def block_child(context)
        case context
        when :ruleset
          declaration
        when :stylesheet
          directive || ruleset
        when :directive
          directive || declaration_or_ruleset
        end
      end

      def nested_properties!(node, space)
        expected('expression (e.g. 1px, bold)');
      end

      @sass_script_parser = Class.new(Sass::Script::CssParser)
      @sass_script_parser.send(:include, ScriptParser)
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
haml-edge-2.3.186 lib/sass/scss/css_parser.rb
haml-edge-2.3.185 lib/sass/scss/css_parser.rb
haml-edge-2.3.184 lib/sass/scss/css_parser.rb
haml-3.0.0.beta.1 lib/sass/scss/css_parser.rb
haml-edge-2.3.183 lib/sass/scss/css_parser.rb
haml-edge-2.3.182 lib/sass/scss/css_parser.rb
haml-edge-2.3.181 lib/sass/scss/css_parser.rb
haml-edge-2.3.180 lib/sass/scss/css_parser.rb