use std::path::Path;
use walkdir::WalkDir;
pub fn walk_dir<P: AsRef<Path>>(folder: P) -> WalkDir {
WalkDir::new(folder).follow_links(true)
}
#[cfg(all(test, feature = "parsing"))]
pub mod testdata {
use std::sync::LazyLock;
use crate::parsing::SyntaxSet;
pub static PACKAGES_SYN_SET: LazyLock<SyntaxSet> =
LazyLock::new(|| SyntaxSet::load_from_folder("testdata/Packages").unwrap());
}