From 5d58b633cefca328f989bb407940cd7a591b1e59 Mon Sep 17 00:00:00 2001 From: lordcasser <591289332@qq.com> Date: Thu, 18 Apr 2024 20:35:02 +0800 Subject: [PATCH] replace regex with fancy_regex --- src/builder.rs | 2 +- src/query.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 67eb8ef..af57b3b 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -515,7 +515,7 @@ impl QueryBuilder { let pattern = self.get_text(&c.node()); let kind = c.node().kind(); - println!("{}",pattern); + // println!("{}",pattern); let is_num_var = |p: &str| -> bool { p.starts_with('$') && p.chars().skip(1).all(|c| c.is_numeric()) }; diff --git a/src/query.rs b/src/query.rs index 50747e3..b391439 100644 --- a/src/query.rs +++ b/src/query.rs @@ -264,7 +264,7 @@ impl QueryTree { vars.insert(s.clone(), r.len() - 1); } Capture::SubWildQuery(t) => { - println!("c:{}|{},t: {}",c.node.kind(),c.node.child_count(),t.captures.len()); + // println!("c:{}|{},t: {}",c.node.kind(),c.node.child_count(),t.captures.len()); subqueries.push((t, c)); } Capture::SubMultiQuery(t) => {