Sha256: deabd12ba49d0756a639a3dec74f13680256afc3a5efe67e97a9077d02bf6461

Contents?: true

Size: 988 Bytes

Versions: 25

Compression:

Stored size: 988 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 interp_ident(ident = IDENT); tok(ident); 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

25 entries across 25 versions & 2 rubygems

Version Path
haml-edge-2.3.209 lib/sass/scss/css_parser.rb
haml-3.0.0.beta.3 lib/sass/scss/css_parser.rb
haml-edge-2.3.208 lib/sass/scss/css_parser.rb
haml-edge-2.3.207 lib/sass/scss/css_parser.rb
haml-edge-2.3.206 lib/sass/scss/css_parser.rb
haml-edge-2.3.205 lib/sass/scss/css_parser.rb
haml-edge-2.3.204 lib/sass/scss/css_parser.rb
haml-3.0.0.beta.2 lib/sass/scss/css_parser.rb
haml-edge-2.3.203 lib/sass/scss/css_parser.rb
haml-edge-2.3.202 lib/sass/scss/css_parser.rb
haml-edge-2.3.201 lib/sass/scss/css_parser.rb
haml-edge-2.3.200 lib/sass/scss/css_parser.rb
haml-edge-2.3.199 lib/sass/scss/css_parser.rb
haml-edge-2.3.198 lib/sass/scss/css_parser.rb
haml-edge-2.3.197 lib/sass/scss/css_parser.rb
haml-edge-2.3.196 lib/sass/scss/css_parser.rb
haml-edge-2.3.195 lib/sass/scss/css_parser.rb
haml-edge-2.3.194 lib/sass/scss/css_parser.rb
haml-edge-2.3.193 lib/sass/scss/css_parser.rb
haml-edge-2.3.192 lib/sass/scss/css_parser.rb