1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

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.
This commit is contained in:
HasanAlrimawi 2024-09-10 13:54:43 +03:00 committed by GitHub
parent c4d088863e
commit 3f6afd1947
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 19 additions and 3 deletions

4
Cargo.lock generated
View file

@ -4306,9 +4306,9 @@ dependencies = [
[[package]]
name = "malva"
version = "0.9.0"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e6e9f16e424a6672f6726daf965333952dece79ef3d17aac712b92b3b72d0a8"
checksum = "484beda6e5d775ed06a8ec0fce79e51d39f49d834ed2a29da3f437079321804f"
dependencies = [
"aho-corasick",
"itertools 0.13.0",

View file

@ -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

View file

@ -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 {

View file

@ -0,0 +1,5 @@
{
"tempDir": true,
"args": "fmt --unstable-component",
"output": "fmt.out"
}

View file

@ -0,0 +1,2 @@
[WILDCARD]main.astro
Checked 1 file

View file

@ -0,0 +1,8 @@
<style>
/*
CSS
*/
body {
font-family: 'Arial', sans-serif;
}
</style>