labels maybe idk they still seem kinda broken
This commit is contained in:
parent
af24f554de
commit
44d508a15a
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ pub fn detect_labels(mut chunks: Vec<String>) -> (Vec<String>, Vec<Label>) {
|
|||
let mut labels: Vec<Label> = vec![];
|
||||
for (index, element) in chunks.iter().enumerate() {
|
||||
if element.chars().next() == Some(';') {
|
||||
let label = Label { label: element.replace(";","").to_string(), index: index };
|
||||
println!("{}", index);
|
||||
let label = Label { label: element.replace(";","").to_string(), index: index*4 };
|
||||
labels.push(label);
|
||||
} else {
|
||||
stripped_chunks.push(element.to_string());
|
||||
|
|
Reference in a new issue