Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add .cppm (C++20 module interface) to C++ file extensions (#50667)
moleiumde107768b10f
diff --git a/crates/languages/src/cpp/config.toml b/crates/languages/src/cpp/config.tomlindex 10c36a6ded1..e2608a8ce5f 100644--- a/crates/languages/src/cpp/config.toml+++ b/crates/languages/src/cpp/config.toml@@ -1,6 +1,6 @@name = "C++"grammar = "cpp"-path_suffixes = ["cc", "hh", "cpp", "h", "hpp", "cxx", "hxx", "c++", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"]+path_suffixes = ["cc", "hh", "cpp", "cppm", "h", "hpp", "cxx", "hxx", "c++", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"]line_comments = ["// ", "/// ", "//! "]first_line_pattern = '^//.*-\*-\s*C\+\+\s*-\*-'decrease_indent_patterns = [diff --git a/crates/theme/src/icon_theme.rs b/crates/theme/src/icon_theme.rsindex 7c2d603281e..121ff9d7d4f 100644--- a/crates/theme/src/icon_theme.rs+++ b/crates/theme/src/icon_theme.rs@@ -89,7 +89,7 @@ const FILE_SUFFIXES_BY_ICON_KEY: &[(&str, &[&str])] = &[("cpp",&[- "c++", "h++", "cc", "cpp", "cxx", "hh", "hpp", "hxx", "inl", "ixx",+ "c++", "h++", "cc", "cpp", "cppm", "cxx", "hh", "hpp", "hxx", "inl", "ixx",],),("crystal", &["cr", "ecr"]),