From 5b39cfa789cee6dfc4e525982e1e91c0cdd9379f Mon Sep 17 00:00:00 2001 From: ef3d0c3e Date: Fri, 19 Jul 2024 11:56:04 +0200 Subject: [PATCH] oops --- .../src@main.rs | 22 ------------------ .../src@main.rs.blob | Bin 346 -> 0 bytes test.nml | 6 ----- 3 files changed, 28 deletions(-) delete mode 100644 .ccls-cache/@home@baraquiel@Programming@rust_learn/src@main.rs delete mode 100644 .ccls-cache/@home@baraquiel@Programming@rust_learn/src@main.rs.blob delete mode 100644 test.nml diff --git a/.ccls-cache/@home@baraquiel@Programming@rust_learn/src@main.rs b/.ccls-cache/@home@baraquiel@Programming@rust_learn/src@main.rs deleted file mode 100644 index fa51759..0000000 --- a/.ccls-cache/@home@baraquiel@Programming@rust_learn/src@main.rs +++ /dev/null @@ -1,22 +0,0 @@ -use regex::Regex; -use std::fs; - -fn main() { - let re = Regex::new(r"(?m)(^|\n)([#]+)(( |\t)+)(.+)$").unwrap(); - - //let src = fs::read_to_string("./readme.nml").unwrap(); - let src = String::from("# Test\n## Second line!\n### Third"); - - let mut result = Vec::::new(); - for (line, [_, count, spacing, string]) in re.captures_iter(&src).map(|v| v.extract()) - { - println!("`{line}`:\n{count}/{spacing}/{string}\n"); - } - //test(&p); - - /* - */ - //t1.join().unwrap(); - //t2.join().unwrap(); - -} diff --git a/.ccls-cache/@home@baraquiel@Programming@rust_learn/src@main.rs.blob b/.ccls-cache/@home@baraquiel@Programming@rust_learn/src@main.rs.blob deleted file mode 100644 index eae37acf594cd669ada7f731b118550a63840618..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 346 zcmdO5_-FIx#c2jc2K|iu+*JLf#G=H)(#+Hx{eYtU^rFPv+|0am{i4$1lK7m|#G*X? z;-X~z+{Da0y`o|U=H#5jymWGO>XzphWdlvtP01`uO)kkVsv z6PX`eVqk(ZL1q@0qyP1yCUuP$2^cgAfx) Ig%Cs`05LykMgRZ+ diff --git a/test.nml b/test.nml deleted file mode 100644 index 6d6f325..0000000 --- a/test.nml +++ /dev/null @@ -1,6 +0,0 @@ -Line1 -##{refname}+ -##*a* inc -######+ First section -second -##* Subsectiona