i'm stabbing the dark!
This commit is contained in:
parent
00000003ec
commit
0b442e898d
2 changed files with 6 additions and 6 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -120,7 +120,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "lintc"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
dependencies = [
|
||||
"built",
|
||||
]
|
||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -27,13 +27,13 @@ fn load_macro(set: String, mac: String, inputs: String, vars: Vec<String>) -> St
|
|||
let mut keg: String = "".to_owned();
|
||||
let mut coont = 0;
|
||||
for input in based {
|
||||
let mut x = input.to_string();
|
||||
let mut x;
|
||||
if contents.contains(")!!") {
|
||||
x = x.replace("\",","![[hex]]\",");
|
||||
x = x.replace("\")","![[hex]]\")");
|
||||
x = format!("{}![[hex]]", input);
|
||||
} else if contents.contains(")..") {
|
||||
x = x.replace("(\"","(\"var!");
|
||||
x = x.replace(",\"",",\"var!");
|
||||
x = format!("var!{}", input);
|
||||
} else {
|
||||
x = input.to_string();
|
||||
}
|
||||
println!("{}", x);
|
||||
jeff.push(x.to_string());
|
||||
|
|
Reference in a new issue