micro: set repistory for packages
micro: fmt micro: set repistory for packages micro: release.toml micro: prepare for crates publish. Im crazy micro: prepare for crates publish. Im crazy micro: prepare for crates publish. Im crazy micro: prepare for crates publish. Im crazy micro: prepare for crates publish. Im crazy
This commit is contained in:
parent
87e81bbc1b
commit
14aa982761
2 changed files with 74 additions and 108 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use proc_macro2::TokenStream;
|
||||
use quote::quote;
|
||||
use syn::{parse::Parse, Ident};
|
||||
use regex::Regex;
|
||||
use syn::{parse::Parse, Ident};
|
||||
|
||||
use super::{ArbitraryStyleBlock, ArbitraryStyleSyntax};
|
||||
|
||||
|
|
@ -50,7 +50,10 @@ impl Parse for MacroSyntax {
|
|||
|
||||
// this is because of how parsing works. Need to find more elegant way though
|
||||
// TODO: find a more elegant way
|
||||
code.code = Regex::new("\n ").expect("BUG: failed to build regex for indentation SASS").replace_all(&code.code, "\n").to_string();
|
||||
code.code = Regex::new("\n ")
|
||||
.expect("BUG: failed to build regex for indentation SASS")
|
||||
.replace_all(&code.code, "\n")
|
||||
.to_string();
|
||||
|
||||
Ok(Self {
|
||||
ident,
|
||||
|
|
@ -61,6 +64,4 @@ impl Parse for MacroSyntax {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
|
||||
}
|
||||
mod test {}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#![doc = include_str!("../README.md")]
|
||||
|
||||
// Moving this to separate crate, cuz I don't wanna to reimplement that parsing again for build magic
|
||||
// Also, because I can.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue