can we make life so much easier?
This commit is contained in:
parent
d1637a8f2a
commit
00000003ec
2 changed files with 11 additions and 2 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
11
src/main.rs
11
src/main.rs
|
@ -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("]") {
|
||||||
|
|
Reference in a new issue