i'm stabbing the dark!

This commit is contained in:
abbie 2022-01-29 10:32:11 +00:00
parent 00000003ec
commit 0b442e898d
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87
2 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View file

@ -120,7 +120,7 @@ dependencies = [
[[package]] [[package]]
name = "lintc" name = "lintc"
version = "0.2.1" version = "0.2.2"
dependencies = [ dependencies = [
"built", "built",
] ]

View file

@ -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());