test_pug_syntax() — tailwindcss Function Reference
Architecture documentation for the test_pug_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD f77c12ed_c119_722f_3dc5_a681c50c0d8f["test_pug_syntax()"] 322a5768_e6e0_c5e9_b1c2_7c6638e21f71["assert_extract_sorted_candidates()"] f77c12ed_c119_722f_3dc5_a681c50c0d8f -->|calls| 322a5768_e6e0_c5e9_b1c2_7c6638e21f71 950dd1f1_4d68_5e31_aeaa_e1d3ecf0464e["pre_process_input()"] f77c12ed_c119_722f_3dc5_a681c50c0d8f -->|calls| 950dd1f1_4d68_5e31_aeaa_e1d3ecf0464e style f77c12ed_c119_722f_3dc5_a681c50c0d8f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 625–649
fn test_pug_syntax() {
for (input, expected) in [
// Class literal
(
".bg-green-300.2xl:bg-red-500",
vec!["bg-green-300", "2xl:bg-red-500"],
),
(
".2xl:bg-red-500.bg-green-300",
vec!["bg-green-300", "2xl:bg-red-500"],
),
(".xl:col-span-2.xl:pr-8", vec!["xl:col-span-2", "xl:pr-8"]),
(
"div.2xl:bg-red-500.bg-green-300",
vec!["div", "bg-green-300", "2xl:bg-red-500"],
),
// Quoted attribute
(
r#"input(type="checkbox" class="px-2.5")"#,
vec!["input", "type", "checkbox", "class", "px-2.5"],
),
] {
assert_extract_sorted_candidates(&pre_process_input(input, "pug"), expected);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_pug_syntax() do?
test_pug_syntax() is a function in the tailwindcss codebase.
What does test_pug_syntax() call?
test_pug_syntax() calls 2 function(s): assert_extract_sorted_candidates, pre_process_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free