oops, fix regex :D

This commit is contained in:
Yiffy Dev 2024-10-30 17:12:23 +05:00 • committed by spushk
commit 65005f446f
Signed by: spushk
GPG key ID: 7797B761E105E8AA

View file

@ -1,6 +1,7 @@
use proc_macro2::TokenStream; use proc_macro2::TokenStream;
use quote::quote; use quote::quote;
use syn::{parse::Parse, Ident}; use syn::{parse::Parse, Ident};
use regex::Regex;
use super::{ArbitraryStyleBlock, ArbitraryStyleSyntax}; use super::{ArbitraryStyleBlock, ArbitraryStyleSyntax};
@ -43,9 +44,6 @@ pub struct MacroSyntax {
impl Parse for MacroSyntax { impl Parse for MacroSyntax {
fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> { fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
#[cfg(feature = "sass")]
use regex::Regex;
let ident = input.parse::<Ident>()?; let ident = input.parse::<Ident>()?;
let mode = input.parse::<ArbitraryStyleSyntax>()?; let mode = input.parse::<ArbitraryStyleSyntax>()?;
let mut code = input.parse::<ArbitraryStyleBlock>()?; let mut code = input.parse::<ArbitraryStyleBlock>()?;