uncomment 3.4.0

A CLI tool to remove comments from code using tree-sitter for accurate parsing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This line comment should be removed

/// This is a doc comment that should be preserved
#[allow(dead_code)]
fn greet(name: &str) -> String {
    /* This block comment should be removed */
    let url = "http://example.com//path";
    let msg = "Hello // world";
    // TODO: add error handling
    format!("{}, {}!", msg, name)
}

fn main() {
    let result = greet("Alice");
    println!("{}", result);
}