Skip to content

Add support for nested CSS in ts, js and tsx#926

Open
ptravers wants to merge 5 commits intoWilfred:masterfrom
ptravers:911-inline-css-parsing
Open

Add support for nested CSS in ts, js and tsx#926
ptravers wants to merge 5 commits intoWilfred:masterfrom
ptravers:911-inline-css-parsing

Conversation

@ptravers
Copy link
Copy Markdown

@ptravers ptravers commented Nov 24, 2025

fixes: #911

Comment on lines +120 to +131
pub struct SyntaxTreeDisplay<'a>(Vec<&'a Syntax<'a>>);

#[allow(dead_code)]
impl<'a> SyntaxTreeDisplay<'a> {
pub fn from(tree: Vec<&'a Syntax<'a>>) -> Self {
Self(tree)
}

fn print_node(
f: &mut fmt::Formatter<'_>,
node: &Syntax,
prefix: &str,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy to move this functionality into test or just remove it from the PR. I found it helpful when debugging to be able to look at an ascii tree of the parsed syntax.

@ptravers ptravers force-pushed the 911-inline-css-parsing branch from a851509 to 4f46083 Compare November 24, 2025 19:34
@ptravers ptravers force-pushed the 911-inline-css-parsing branch from 4f46083 to 3f741de Compare November 24, 2025 19:34
@ptravers ptravers force-pushed the 911-inline-css-parsing branch from c8d39f3 to e9898dc Compare November 24, 2025 19:42
@ptravers ptravers force-pushed the 911-inline-css-parsing branch from b08bb3a to d0620a5 Compare November 24, 2025 19:44
@ptravers ptravers force-pushed the 911-inline-css-parsing branch from dacf99f to 58ce7fb Compare November 24, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug with template strings in js, ts

1 participant