From 3138d0f6ff97c692939032a6711439fcdfe8e503 Mon Sep 17 00:00:00 2001 From: specCon18 Date: Sat, 22 Mar 2025 10:55:46 -0400 Subject: [PATCH] added support for parsing .rs .java .c files --- cmd/root.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 34bc2cd..e5fe33c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -133,8 +133,9 @@ func readFileTree(path string) []Comment { return err } - // Check if file has .go extension - if filepath.Ext(p) == ".go" { + // Check if file has a valid extension + ext := filepath.Ext(p) + if ext == ".go" || ext == ".rs" || ext == ".java" || ext == ".c"{ // Read the file and check for comments file, err := os.Open(filepath.Join(path, p)) if err != nil {