Add support for nested CSS in ts, js and tsx#926
Open
ptravers wants to merge 5 commits intoWilfred:masterfrom
Open
Add support for nested CSS in ts, js and tsx#926ptravers wants to merge 5 commits intoWilfred:masterfrom
ptravers wants to merge 5 commits intoWilfred:masterfrom
Conversation
ptravers
commented
Nov 24, 2025
src/parse/syntax.rs
Outdated
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, |
Author
There was a problem hiding this comment.
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.
a851509 to
4f46083
Compare
4f46083 to
3f741de
Compare
c8d39f3 to
e9898dc
Compare
b08bb3a to
d0620a5
Compare
dacf99f to
58ce7fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes: #911