class CSS::Lexer
- CSS::Lexer
- Reference
- Object
Included Modules
- CSS::TokenEmitter
Defined in:
html5/css/lexer.crConstructors
Instance Method Summary
- #backup
- #emit(t : TokenType)
- #eof : Nil
- #errorf(err) : Nil
- #next
- #parse_colon
- #parse_comment
- #parse_hash
- #parse_ident
- #parse_next
- #parse_num_or_dot
- #parse_space
- #parse_string
- #peek
-
#skip_escape : Nil
skip_escape skips the characters following the escape character ''.
-
#skip_ident
skip_ident attempts to move the lexer to the end of the next identifier.
- #skip_nums
- #skip_space
- #token : Token
Instance methods inherited from module CSS::TokenEmitter
token : Token
token
Constructor Detail
Instance Method Detail
def skip_escape : Nil
#
skip_escape skips the characters following the escape character ''. it assumes that the lexer has already consumed this character.
def skip_ident
#
skip_ident attempts to move the lexer to the end of the next identifier. if return false, the lexer was not advanced.