Skip to content

Commit 21f914c

Browse files
committed
feat: add Swift support, update language lists to 14
1 parent 136f2d3 commit 21f914c

6 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ You immediately know: what entity conflicted, what type it is, and why it confli
101101

102102
## Supported Languages
103103

104-
TypeScript, JavaScript, Python, Go, Rust, JSON, YAML, TOML, Markdown. Falls back to standard line-level merge for unsupported file types.
104+
TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, Ruby, C#, PHP, Swift, Fortran, JSON, YAML, TOML, CSV, Markdown. Falls back to standard line-level merge for unsupported file types.
105105

106106
## Setup
107107

crates/weave-cli/src/commands/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use colored::Colorize;
77
const SUPPORTED_EXTENSIONS: &[&str] = &[
88
"*.ts", "*.tsx", "*.js", "*.mjs", "*.cjs", "*.jsx", "*.py", "*.go", "*.rs",
99
"*.java", "*.c", "*.h", "*.cpp", "*.cc", "*.cxx", "*.hpp", "*.hh", "*.hxx",
10-
"*.rb", "*.cs", "*.php",
10+
"*.rb", "*.cs", "*.php", "*.swift",
1111
"*.f90", "*.f95", "*.f03", "*.f08",
1212
"*.json", "*.yaml", "*.yml", "*.toml", "*.md",
1313
];

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ <h2>Supported languages</h2>
299299
<tr><td>Ruby</td><td>.rb</td><td>methods, classes, modules</td></tr>
300300
<tr><td>C#</td><td>.cs</td><td>methods, classes, interfaces, enums, structs, namespaces</td></tr>
301301
<tr><td>PHP</td><td>.php</td><td>functions, classes, methods, interfaces, traits, enums, namespaces</td></tr>
302+
<tr><td>Swift</td><td>.swift</td><td>functions, classes, protocols, structs, enums, typealiases</td></tr>
302303
<tr><td>Fortran</td><td>.f90 .f95 .f03 .f08 .f .for</td><td>functions, subroutines, modules, programs, interfaces</td></tr>
303304
<tr><td>JSON</td><td>.json</td><td>properties, objects</td></tr>
304305
<tr><td>YAML</td><td>.yml .yaml</td><td>sections, properties</td></tr>

docs/llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Entity extraction via sem-core with xxHash64 structural hashing, parallel tree-s
3636

3737
## Key Features
3838

39-
- 13 languages: TypeScript, TSX, JavaScript, Python, Go, Rust, Java, C, C++, Ruby, C#, PHP, Fortran
39+
- 14 languages: TypeScript, TSX, JavaScript, Python, Go, Rust, Java, C, C++, Ruby, C#, PHP, Swift, Fortran
4040
- Rename detection via confidence-scored structural hashing (0.95/0.8/0.6 scoring)
4141
- Commutative import merge with group preservation (imports merged within blank-line groups)
4242
- Unordered class members (methods added at same position resolve cleanly)

site/public/llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ weave setup
3333

3434
## Key Features
3535

36-
- 13 languages: TypeScript, TSX, JavaScript, Python, Go, Rust, Java, C, C++, Ruby, C#, PHP, Fortran
36+
- 14 languages: TypeScript, TSX, JavaScript, Python, Go, Rust, Java, C, C++, Ruby, C#, PHP, Swift, Fortran
3737
- Rename detection via confidence-scored structural hashing (0.95/0.8/0.6 scoring)
3838
- Commutative import merge with group preservation (imports merged within blank-line groups)
3939
- Unordered class members (methods added at same position resolve cleanly)

site/src/app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default function Home() {
8989
<div>
9090
<h3 className="text-lg font-semibold mb-3" style={{ fontFamily: "var(--font-heading)" }}>1. Parse with tree-sitter</h3>
9191
<p className="text-gray-400 leading-relaxed">
92-
All three versions (base, ours, theirs) are parsed into entity lists: functions, classes, methods, imports, constants, and types. 12 languages supported.
92+
All three versions (base, ours, theirs) are parsed into entity lists: functions, classes, methods, imports, constants, and types. 14 languages supported.
9393
</p>
9494
</div>
9595
<div>
@@ -122,9 +122,9 @@ export default function Home() {
122122
</h2>
123123
<div className="grid md:grid-cols-3 gap-8">
124124
<div className="border border-white/10 rounded-lg p-6">
125-
<h3 className="text-base font-semibold mb-3" style={{ fontFamily: "var(--font-heading)" }}>12 Languages</h3>
125+
<h3 className="text-base font-semibold mb-3" style={{ fontFamily: "var(--font-heading)" }}>14 Languages</h3>
126126
<p className="text-gray-400 text-sm leading-relaxed">
127-
TypeScript, TSX, JavaScript, Python, Go, Rust, Java, C, C++, Ruby, C#, Fortran. Each with language-specific entity extraction.
127+
TypeScript, TSX, JavaScript, Python, Go, Rust, Java, C, C++, Ruby, C#, PHP, Swift, Fortran. Each with language-specific entity extraction.
128128
</p>
129129
</div>
130130
<div className="border border-white/10 rounded-lg p-6">

0 commit comments

Comments
 (0)