From 3f6afd19472c7a13f21b1083d80a563d9359a7ab Mon Sep 17 00:00:00 2001 From: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:54:43 +0300 Subject: fix: update malva in deno to support astro css comments (#25553) This PR addresses issue #25534 **Code Changes** - Updated malva version to the latest in cli/Cargo.toml. - Updated LanguageOptions to match new Malva config. - Added test case same as the issue to assure changes success. --- cli/Cargo.toml | 2 +- cli/tools/fmt.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 63ad21c37..882c8d8bc 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -123,7 +123,7 @@ libc.workspace = true libz-sys.workspace = true log = { workspace = true, features = ["serde"] } lsp-types.workspace = true -malva = "=0.9.0" +malva = "=0.10.1" markup_fmt = "=0.12.0" memmem.workspace = true monch.workspace = true diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index feb716100..2b8beda37 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -907,6 +907,7 @@ fn get_resolved_malva_config( }; let language_options = LanguageOptions { + align_comments: true, hex_case: HexCase::Lower, hex_color_length: None, quotes: if let Some(true) = options.single_quote { -- cgit v1.2.3