This is a subclass of {Parser} which only parses plain CSS. It doesn’t support any Sass extensions, such as interpolation, parent references, nested selectors, and so forth. It does support all the same CSS hacks as the SCSS parser, though.
# File lib/sass/scss/css_parser.rb, line 23
23: def block_child(context)
24: case context
25: when :ruleset
26: declaration
27: when :stylesheet
28: directive || ruleset
29: when :directive
30: directive || declaration_or_ruleset
31: end
32: end
# File lib/sass/scss/css_parser.rb, line 15
15: def interp_ident(ident = IDENT); tok(ident); end
# File lib/sass/scss/css_parser.rb, line 14
14: def interp_string; tok(STRING); end
# File lib/sass/scss/css_parser.rb, line 13
13: def interpolation; nil; end
# File lib/sass/scss/css_parser.rb, line 34
34: def nested_properties!(node, space)
35: expected('expression (e.g. 1px, bold)');
36: end
# File lib/sass/scss/css_parser.rb, line 12
12: def parent_selector; nil; end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.