Skip to content

Commit

Permalink
fix(css_parser): fix Constant crashes when editing css files #3256
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Jun 22, 2024
1 parent 626551b commit bed8e43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/biome_css_parser/src/syntax/property/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ pub(crate) fn parse_color(p: &mut CssParser) -> ParsedSyntax {
/// Generates a parse diagnostic for an expected "color" error message at the given range.
pub(crate) fn expected_color(p: &CssParser, range: TextRange) -> ParseDiagnostic {
expected_node("color", range, p)
.with_hint("Ensure the color is specified in a valid hexadecimal format (#RRGGBB or #RGB). Examples: #000, #000f, #ffffff, #ffffffff")
.with_hint("Ensure the color is specified in a valid hexadecimal format. Examples: #000, #000f, #ffffff, #ffffffff")
}
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,6 @@ color_error.css:2:19 parse ━━━━━━━━━━━━━━━━━
3 │ }
4
i Ensure the color is specified in a valid hexadecimal format (#RRGGBB or #RGB). Examples: #000, #000f, #ffffff, #ffffffff
i Ensure the color is specified in a valid hexadecimal format. Examples: #000, #000f, #ffffff, #ffffffff
```

0 comments on commit bed8e43

Please sign in to comment.