Module theme

Source

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 in color: #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 into parse_rules.
parse_selectors 🔒
skip_comment 🔒
Skips a /* comment.
skip_line_comment 🔒
Skips a line comment (//).
test_theme_against 🔒