Structs§
- CssPath π
Functions§
- get_
differences π - get_
inside_ πparen - get_
string π - When encountering a
"
or a'
, returns the whole string, including the quote characters. - handle_
common_ πchars - load_
css_ πpaths - The entry point to parse the CSS rules. Every time we encounter a
{
, we then parse the rules inside it. - parse_
property_ πname - Returns a CSS property name. Ends when encountering a
:
character. - parse_
property_ πvalue - Try to get the value of a CSS property (the
#fff
incolor: #fff
). Itβll stop when it encounters a{
or a;
character. - parse_
rules π - This is used to parse inside a CSS
{}
block. If we encounter a new{
inside it, we consider it as a new block and therefore recurse intoparse_rules
. - parse_
selectors π - skip_
comment π - Skips a
/*
comment. - skip_
line_ πcomment - Skips a line comment (
//
). - test_
theme_ πagainst