Compare commits

..

4 Commits
v0.8.8 ... 4271

Author SHA1 Message Date
autofix-ci[bot]
9f4d826533 [autofix.ci] apply automated fixes 2025-08-30 11:25:00 +00:00
Greg Johnston
a305ae7227 chore: update leptos_macro version 2025-08-30 06:53:42 -04:00
Greg Johnston
65557c5723 leptos_macro-v0.8.8 2025-08-30 06:47:57 -04:00
Greg Johnston
a529f87ee2 Revert "fix: correctly parse unquoted text with punctuation in stable (closes #4137) (#4238)"
This reverts commit 99c3d8f9e9.
2025-08-30 06:46:36 -04:00
4 changed files with 5 additions and 14 deletions

2
Cargo.lock generated
View File

@@ -1952,7 +1952,7 @@ dependencies = [
[[package]]
name = "leptos_macro"
version = "0.8.7"
version = "0.8.8"
dependencies = [
"attribute-derive",
"cfg-if",

View File

@@ -55,7 +55,7 @@ leptos_config = { path = "./leptos_config", version = "0.8.7" }
leptos_dom = { path = "./leptos_dom", version = "0.8.6" }
leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.8.5" }
leptos_integration_utils = { path = "./integrations/utils", version = "0.8.5" }
leptos_macro = { path = "./leptos_macro", version = "0.8.7" }
leptos_macro = { path = "./leptos_macro", version = "0.8.8" }
leptos_router = { path = "./router", version = "0.8.6" }
leptos_router_macro = { path = "./router_macro", version = "0.8.5" }
leptos_server = { path = "./leptos_server", version = "0.8.5" }

View File

@@ -1,6 +1,6 @@
[package]
name = "leptos_macro"
version = "0.8.7"
version = "0.8.8"
authors = ["Greg Johnston"]
license = "MIT"
repository = "https://github.com/leptos-rs/leptos"
@@ -24,9 +24,7 @@ proc-macro-error2 = { default-features = false, workspace = true }
proc-macro2 = { workspace = true, default-features = true }
quote = { workspace = true, default-features = true }
syn = { features = ["full"], workspace = true, default-features = true }
rstml = { workspace = true, default-features = true, features = [
"rawtext-stable-hack",
] }
rstml = { workspace = true, default-features = true }
leptos_hot_reload = { workspace = true }
server_fn_macro = { workspace = true }
convert_case = { workspace = true, default-features = true }

View File

@@ -323,14 +323,7 @@ fn view_macro_impl(tokens: TokenStream, template: bool) -> TokenStream {
.chain(tokens)
.collect()
};
let macro_call_pattern = if let Some(class) = &global_class {
quote!(view! { class = #class, %% })
} else {
quote!(view! {%%})
};
let config = rstml::ParserConfig::default()
.recover_block(true)
.macro_call_pattern(macro_call_pattern);
let config = rstml::ParserConfig::default().recover_block(true);
let parser = rstml::Parser::new(config);
let (mut nodes, errors) = parser.parse_recoverable(tokens).split_vec();
let errors = errors.into_iter().map(|e| e.emit_as_expr_tokens());