diff options
author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-09-10 13:54:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 12:54:43 +0200 |
commit | 3f6afd19472c7a13f21b1083d80a563d9359a7ab (patch) | |
tree | 4dbc5f9deff1ca11c476fbaa9fe11a0853c35c45 /cli | |
parent | c4d088863e93b70fa0729f326ad14376ca90b0a6 (diff) |
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.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 2 | ||||
-rw-r--r-- | cli/tools/fmt.rs | 1 |
2 files changed, 2 insertions, 1 deletions
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 { |