Hwaro::Assets::Sass::Scanner
Inherits Reference / Object
Constructors
new(source : String, path : String)
SourceInstance methods
advance
Sourcecolumn
Sourceeof?
Sourceerror(message : String, line : Int32 = @line, column : Int32 = @column) : NoReturn
Sourceident_char?(c : Char | Nil) : Bool
Sourceident_start?(c : Char | Nil) : Bool
Sourceline
Sourcepath
Sourcepeek(offset : Int32 = 0) : Char | Nil
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