Hwaro::Assets::Sass::Parser
Inherits Reference / Object
Constants
MAX_BLOCK_DEPTH = 256
Far beyond any real stylesheet's nesting; parse recursion past this
must error instead of overflowing the stack — a stack overflow is
unrescuable and would kill hwaro serve outright.
UNSUPPORTED_DIRECTIVES = ["extend"] of ::String
Sass directives outside the supported subset. Rejected loudly with a located error — never silently emitted as broken CSS.
Constructors
new(source : String, path : String)
SourceClass methods
parse(source : String, path : String) : Ast::Stylesheet
Sourcesplit_top_level_commas(text : String) : Array(String)
Splits selector-ish text on commas outside strings/brackets/parens. Shared with the evaluator's selector resolution.
Instance methods
parse
Source