class

Hwaro::Assets::Sass::Scanner

Inherits Reference / Object

Constructors

new(source : String, path : String)
Source

Instance methods

advance
Source
column
Source
eof?
Source
error(message : String, line : Int32 = @line, column : Int32 = @column) : NoReturn
Source
ident_char?(c : Char | Nil) : Bool
Source
ident_start?(c : Char | Nil) : Bool
Source
line
Source
path
Source
peek(offset : Int32 = 0) : Char | Nil
Source
read_ident

Reads an identifier (CSS ident charset; no escape support).

Source
read_loud_comment

Consumes "/* ... */" (cursor on the leading '/') and returns it verbatim including delimiters.

Source
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).

Source
restore(snap : Snapshot) : Nil
Source
skip_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.

Source
skip_ws
Source
snapshot
Source

Nested types