can we make life so much easier?

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

View file

@ -1,6 +1,6 @@
[package] [package]
name = "lintc" name = "lintc"
version = "0.2.1" version = "0.2.2"
edition = "2021" edition = "2021"
build = "build.rs" build = "build.rs"

View file

@ -27,7 +27,16 @@ 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 {
jeff.push(input.to_string()) let mut x = input.to_string();
if contents.contains(")!!") {
x = x.replace("\",","![[hex]]\",");
x = x.replace("\")","![[hex]]\")");
} else if contents.contains(")..") {
x = x.replace("(\"","(\"var!");
x = x.replace(",\"",",\"var!");
}
println!("{}", x);
jeff.push(x.to_string());
} }
if contents.contains("[") && contents.contains("]") { if contents.contains("[") && contents.contains("]") {