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]]
|
[[package]]
|
||||||
name = "lintc"
|
name = "lintc"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"built",
|
"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 keg: String = "".to_owned();
|
||||||
let mut coont = 0;
|
let mut coont = 0;
|
||||||
for input in based {
|
for input in based {
|
||||||
let mut x = input.to_string();
|
let mut x;
|
||||||
if contents.contains(")!!") {
|
if contents.contains(")!!") {
|
||||||
x = x.replace("\",","![[hex]]\",");
|
x = format!("{}![[hex]]", input);
|
||||||
x = x.replace("\")","![[hex]]\")");
|
|
||||||
} else if contents.contains(")..") {
|
} else if contents.contains(")..") {
|
||||||
x = x.replace("(\"","(\"var!");
|
x = format!("var!{}", input);
|
||||||
x = x.replace(",\"",",\"var!");
|
} else {
|
||||||
|
x = input.to_string();
|
||||||
}
|
}
|
||||||
println!("{}", x);
|
println!("{}", x);
|
||||||
jeff.push(x.to_string());
|
jeff.push(x.to_string());
|
||||||
|
|
Reference in a new issue