Hwaro::Assets::Sass::Parser
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.
Constructors
Class methods
comment_template(text : String, path : String, line : Int32, column : Int32) : Ast::TextTemplate | Nil
Splits a loud comment's text into literal runs and #{...}
interpolations. Positions inside the returned template are
relative to the comment body, so errors carry the comment's own
location instead. nil when the text doesn't parse as a template
(a literal #{ with no closing brace) — plain-CSS comments must
keep passing through verbatim, never become parse errors.
Instance methods
parse
Source