Skip to main contentModule theme
Source use std::fs; π use std::iter::Peekable; π use std::path::Path; π use std::str::Chars; π use rustc_data_structures::fx::FxIndexMap; π use rustc_data_structures::fx::IndexEntry; π use rustc_errors::DiagCtxtHandle; π
- CssPath π
- 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 π