Skip to content

Commit 89b547d

Browse files
committed
feat: add .cc support and refactor parsing logic - Add .cc file extension recognition with full C++ parsing capabilities - Refactor parseSourceCode() into language-specific functions for better maintainability - Replace shouldSkip boolean with cleaner goto control flow - Update README with recent improvements and supported file types
1 parent 647c47e commit 89b547d

5 files changed

Lines changed: 374 additions & 13 deletions

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Parsec is a fast, terminal-based file inspector that provides immediate summarie
88

99
*Parsec's split-screen interface showing file summaries and executable help display*
1010

11+
## Recent Improvements
12+
13+
- **Enhanced C++ Support**: Added `.cc` file extension recognition with full parsing capabilities
14+
- **Code Refactoring**: Refactored monolithic parsing logic into language-specific functions for better maintainability
15+
- **Improved Control Flow**: Replaced boolean flags with cleaner goto statements for directory skipping logic
16+
- **Better Modularity**: Language-specific parsers for Go, Python, JavaScript/TypeScript, Rust, and C++
17+
1118
## Features
1219

1320
- Split-screen interface with file tree and detailed summary view
@@ -68,7 +75,7 @@ go build .
6875

6976
| Category | Extensions | Features |
7077
|----------|------------|-----------|
71-
| Programming | `.go` `.py` `.js` `.ts` `.rs` `.java` `.c` `.cpp` | Functions, types, imports |
78+
| Programming | `.go` `.py` `.js` `.ts` `.rs` `.java` `.c` `.cpp` `.cc` | Functions, types, imports |
7279
| Documentation | `.md` `.markdown` `.rst` | Headers, links, rendered content |
7380
| Configuration | `.json` `.yaml` `.ini` `.env` | Keys, structure |
7481
| Data | `.xml` `.csv` `.log` | Content preview |

0 commit comments

Comments
 (0)