capybara-engine/src/parser/preparser/insert_semicolons.rs
2024-03-09 22:36:43 +01:00

9 lines
No EOL
298 B
Rust

use crate::utils::str_safe_split;
// Takes space normalised source code and adds semicolons where needed
// May not work properly if string isn't space normalised beforehand
pub fn insert_semicolons(raw: &str) -> String {
let _splits = str_safe_split(raw, vec![' ','\t']);
"".to_owned()
}