fix(formatter_css): bump oxc-css-parser to accept unknown at-rule with interpolated (#25277)

Fixes #25272
This commit is contained in:
leaysgur committed 2026-08-04 06:39:46 +00:00
1 parent c29b587dbf
commit e23dccf338
4 files changed
+89 -10

No files matched your search

Generated
+9 -9
View File
@@ -274,7 +274,7 @@ version = "3.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34"
dependencies = [
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -696,7 +696,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -1523,7 +1523,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -1689,9 +1689,9 @@ dependencies = [
[[package]]
name = "oxc-css-parser"
version = "0.0.10"
version = "0.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7762bb29c1dd9a1aa0eb29c997d2127efe3603f411f03fa7f525af111b1fdf0f"
checksum = "c68989474118e8cfb760b85615bb07f91cf5a85e04632d1dce3aab2785f4fb88"
dependencies = [
"oxc_allocator",
]
@@ -3320,7 +3320,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -3447,7 +3447,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521"
dependencies = [
"libc",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -3742,7 +3742,7 @@ dependencies = [
"getrandom 0.4.3",
"once_cell",
"rustix",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -4229,7 +4229,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
+1 -1
View File
@@ -238,7 +238,7 @@ nodejs-built-in-modules = "1.0.0" # Node.js built-in modules
nonmax = "0.5.5" # Non-maximum numbers
num-bigint = "0.5.0" # Big integers
num-traits = "0.2.19" # Numeric traits
oxc-css-parser = "0.0.10" # CSS/SCSS/Less parser (raffia 0.12.3 fork: adds `template_placeholder` typed placeholders for css-in-js + valid-syntax coverage fixes (see crates/oxc_formatter_css/AGENTS.md))
oxc-css-parser = "0.0.11" # CSS/SCSS/Less parser (raffia 0.12.3 fork: adds `template_placeholder` typed placeholders for css-in-js + valid-syntax coverage fixes (see crates/oxc_formatter_css/AGENTS.md))
oxc-graphql-parser = "0.0.9" # GraphQL parser (direct AST; apollo-parser 0.8.6 fork aligned with graphql-js 17 syntax)
oxc-toml = "0.14.5" # TOML formatter
oxc-yaml-parser = "0.0.4" # YAML 1.2 parser (comment-preserving typed AST, node naming from `yaml-unist-parser`)
@@ -0,0 +1,16 @@
/* oxc#25272: interpolation combined with a PostCSS-style `key: value`
argument in an unknown at-rule prelude must parse (raw fallback) and
print verbatim, like every other unknown at-rule prelude. */
@insert-tokens theme: 'y';
@insert-tokens '#{$t}';
@insert-tokens theme: '#{$t}';
@insert-tokens theme: #{$t};
@insert-tokens a: '#{$t}', b: '#{$u}';
@insert-tokens a: b('#{$t}');
@insert-tokens a: #fff;
@insert-tokens a: '#fff';
@mixin m($name) {
#{$sel} {
@insert-tokens theme: '#{$name}', scope: 'theme';
}
}
@@ -0,0 +1,63 @@
---
source: crates/oxc_formatter_css/tests/fixtures/mod.rs
---
==================== Input ====================
/* oxc#25272: interpolation combined with a PostCSS-style `key: value`
argument in an unknown at-rule prelude must parse (raw fallback) and
print verbatim, like every other unknown at-rule prelude. */
@insert-tokens theme: 'y';
@insert-tokens '#{$t}';
@insert-tokens theme: '#{$t}';
@insert-tokens theme: #{$t};
@insert-tokens a: '#{$t}', b: '#{$u}';
@insert-tokens a: b('#{$t}');
@insert-tokens a: #fff;
@insert-tokens a: '#fff';
@mixin m($name) {
#{$sel} {
@insert-tokens theme: '#{$name}', scope: 'theme';
}
}
==================== Output ====================
------------------
{ printWidth: 80 }
------------------
/* oxc#25272: interpolation combined with a PostCSS-style `key: value`
argument in an unknown at-rule prelude must parse (raw fallback) and
print verbatim, like every other unknown at-rule prelude. */
@insert-tokens theme: 'y';
@insert-tokens '#{$t}';
@insert-tokens theme: '#{$t}';
@insert-tokens theme: #{$t};
@insert-tokens a: '#{$t}', b: '#{$u}';
@insert-tokens a: b('#{$t}');
@insert-tokens a: #fff;
@insert-tokens a: '#fff';
@mixin m($name) {
#{$sel} {
@insert-tokens theme: '#{$name}', scope: 'theme';
}
}
-------------------
{ printWidth: 100 }
-------------------
/* oxc#25272: interpolation combined with a PostCSS-style `key: value`
argument in an unknown at-rule prelude must parse (raw fallback) and
print verbatim, like every other unknown at-rule prelude. */
@insert-tokens theme: 'y';
@insert-tokens '#{$t}';
@insert-tokens theme: '#{$t}';
@insert-tokens theme: #{$t};
@insert-tokens a: '#{$t}', b: '#{$u}';
@insert-tokens a: b('#{$t}');
@insert-tokens a: #fff;
@insert-tokens a: '#fff';
@mixin m($name) {
#{$sel} {
@insert-tokens theme: '#{$name}', scope: 'theme';
}
}
===================== End =====================