diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-12-17 12:16:17 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-12-17 12:17:34 +0100 |
| commit | b02ba84264831ee97e7852f1e33cc78941dba13c (patch) | |
| tree | a9a33145de61d0b8b1f6a5bd65dae73b97f81f00 /src/parse/mod.rs | |
| parent | 0adbfe894ae1252758d1d7fff1df5514824347eb (diff) | |
Test [rgb] 🎨
Diffstat (limited to 'src/parse/mod.rs')
| -rw-r--r-- | src/parse/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 61c90f6c..261bbabb 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -196,6 +196,7 @@ fn bracket_subheader(p: &mut Parser) -> ExprCall { p.skip_white(); let args = if p.eat_if(Token::Colon) { + p.skip_white(); p.span(|p| dict_contents(p).0) } else { // Ignore the rest if there's no colon. @@ -488,7 +489,7 @@ fn color(p: &mut Parser, hex: &str, start: Pos) -> RgbaColor { RgbaColor::from_str(hex).unwrap_or_else(|_| { // Heal color by assuming black. p.diag(error!(start .. p.pos(), "invalid color")); - RgbaColor::new_healed(0, 0, 0, 255) + RgbaColor::with_healed(0, 0, 0, 255, true) }) } |
