diff options
Diffstat (limited to 'git.odin')
| -rw-r--r-- | git.odin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git.odin b/git.odin index cbabf3c..0f7c9af 100644 --- a/git.odin +++ b/git.odin @@ -638,7 +638,10 @@ symbol_name :: proc(file, name: string) -> string { if i := strings.last_index_byte(base, '/'); i >= 0 { base = base[i + 1:] } - extensions := [?]string{".odin", ".rs"} + // A C-family name keeps its extension (lmm.cpp.mdb_analyze) because a header + // declaration and the definition in the source are different rows; the others + // are single-file languages, where the base name is enough. + extensions := [?]string{".odin", ".rs", ".py", ".rb"} for ext in extensions { if strings.has_suffix(base, ext) { base = base[:len(base) - len(ext)] |
