Add raw! and embed! macros in luaify
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::mem;
|
||||
|
||||
use crate::utils::{LuaType, syn_error, unwrap_expr_ident, unwrap_pat_ident, wrap_expr_block};
|
||||
use quote::format_ident;
|
||||
use std::mem;
|
||||
use syn::{spanned::*, visit_mut::*, *};
|
||||
|
||||
pub fn transform(expr: &mut Expr) -> Result<()> {
|
||||
@@ -158,7 +158,7 @@ impl Visitor {
|
||||
}
|
||||
};
|
||||
|
||||
let tmp = Ident::new(&format!("_{ident}"), ident.span());
|
||||
let tmp = format_ident!("_{ident}");
|
||||
let span = cast.span();
|
||||
*expr = match ty {
|
||||
LuaType::Any => parse_quote_spanned!(span => {}),
|
||||
|
||||
Reference in New Issue
Block a user