|
6 | 6 | |----------|-----------|--------|-------------------| |
7 | 7 | | Rust | `.rs` | ✅ Full support | `tree-sitter-rust` | |
8 | 8 | | TypeScript | `.ts`, `.tsx` | ✅ Full support | `tree-sitter-typescript` | |
| 9 | +| JavaScript | `.js`, `.mjs`, `.cjs` | ⚠️ Partial support | `tree-sitter-javascript` | |
9 | 10 | | Python | `.py` | ✅ Full support | `tree-sitter-python` | |
10 | 11 | | Go | `.go` | ✅ Full support | `tree-sitter-go` | |
11 | 12 | | Ruby | `.rb` | ✅ Full support | `tree-sitter-ruby` | |
|
36 | 37 | - Enums (`enum`) - enum declarations with values and computed properties |
37 | 38 | - Namespaces (`namespace`) - namespace declarations with exported members |
38 | 39 |
|
| 40 | +### JavaScript |
| 41 | +- Function declarations (`function`) |
| 42 | +- Arrow functions (`() => {}`) |
| 43 | +- Function expressions |
| 44 | +- Classes (`class`) - ES6+ class syntax |
| 45 | +- Methods (class and object methods) |
| 46 | +- Variable declarations with functions (`const fn = () => {}`) |
| 47 | +- Async functions (`async function`) |
| 48 | +- Export/import statements (ES modules) |
| 49 | +- Object literal methods |
| 50 | + |
| 51 | +> **Note**: JavaScript support is currently in development. Tree-sitter patterns need refinement for full extraction capability. |
| 52 | +
|
39 | 53 | ### Python |
40 | 54 | - Functions (`def`) |
41 | 55 | - Classes (`class`) |
|
115 | 129 |
|
116 | 130 | | Language | Priority | Expected | Notes | |
117 | 131 | |----------|----------|----------|--------| |
118 | | -| JavaScript | High | Next release | ESM/CommonJS support | |
119 | | -| C++ | Medium | Q3 2025 | Modern C++17/20 | |
| 132 | +| C++ | High | Q2 2025 | Modern C++17/20 features | |
120 | 133 | | C# | Medium | Q3 2025 | .NET 6+ features | |
121 | | -| Dart | Low | Future | Flutter development | |
| 134 | +| Dart | Medium | Q4 2025 | Flutter development | |
| 135 | +| Zig | Low | Future | Systems programming | |
122 | 136 |
|
123 | 137 | ## Language-Specific Options |
124 | 138 |
|
|
129 | 143 | gittype --langs rust |
130 | 144 |
|
131 | 145 | # Multiple languages |
132 | | -gittype --langs rust,typescript,python,go,ruby,swift,kotlin,java,php |
| 146 | +gittype --langs rust,typescript,javascript,python,go,ruby,swift,kotlin,java,php |
133 | 147 | ``` |
134 | 148 |
|
135 | 149 | ### Configuration File |
136 | 150 |
|
137 | 151 | ```toml |
138 | 152 | [default] |
139 | | -langs = ["rust", "typescript", "python", "go", "ruby", "swift", "kotlin", "java", "php"] |
| 153 | +langs = ["rust", "typescript", "javascript", "python", "go", "ruby", "swift", "kotlin", "java", "php"] |
140 | 154 | ``` |
141 | 155 |
|
142 | 156 | ## Code Extraction Quality |
|
0 commit comments