Skip to content

Commit

Permalink
replace regex with fancy_regex
Browse files Browse the repository at this point in the history
  • Loading branch information
LordCasser committed Apr 18, 2024
1 parent 86e3e11 commit 5d58b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) };
Expand Down
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5d58b63

Please sign in to comment.