fix formatting with raw elements
This commit is contained in:
1 parent
03413a68ab
commit
f74854b38c
2 files changed
+16
-5
No files matched your search
@@ -53,8 +53,7 @@ impl Parse for BodyNode {
|
||||
// if this is a dash-separated path, it's a web component (custom element)
|
||||
let body_stream = stream.fork();
|
||||
if let Ok(ElementName::Custom(name)) = body_stream.parse::<ElementName>() {
|
||||
println!("name: {}", name);
|
||||
if name.contains('-') && body_stream.peek(token::Brace) {
|
||||
if name.value().contains('-') && body_stream.peek(token::Brace) {
|
||||
return Ok(BodyNode::Element(stream.parse::<Element>()?));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user