Hwaro::Assets::Sass::Scanner
Constructors
Class methods
Instance methods
advance
Sourcecolumn
Sourceeof?
Sourceline
Sourcepath
Sourceread_loud_comment
Consumes "/* ... */" (cursor on the leading '/') and returns it verbatim including delimiters.
read_quoted
Consumes a quoted string (cursor on the opening quote) and returns
it verbatim including quotes and escapes. Stops the scan at #{
boundaries only when the caller handles interpolation itself —
this primitive is interpolation-blind and used where a literal
string is required (e.g. @use/@import urls).
restore(snap : Snapshot) : Nil
Sourceskip_ws
Skips whitespace and comments. Loud (/* */) comments are returned
to the caller one at a time when yield_comments is true so the
parser can preserve them as statement-level nodes; silent (//)
comments are always dropped.
skip_ws
Sourcesnapshot
Source