fix raw attribute names

This commit is contained in:
Evan Almloff committed 2023-09-14 15:56:17 -05:00
1 parent 8c47dfaf78
commit 30b124189c
1 file changed
+5 -3
+5 -3
View File
@@ -457,9 +457,11 @@ impl<'a> DynamicContext<'a> {
} }
}; };
let name = &attr.attr.name; let name = &attr.attr.name;
let name = match el_name { let name = match (el_name, name) {
ElementName::Ident(_) => quote! { #el_name::#name.0 }, (ElementName::Ident(_), ElementAttrName::BuiltIn(_)) => {
ElementName::Custom(_) => { quote! { #el_name::#name.0 }
}
_ => {
let as_string = name.to_string(); let as_string = name.to_string();
quote! { #as_string } quote! { #as_string }
} }