Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Recognize HIP files as C++ (#57333)
Young533d3d534b57
diff --git a/crates/grammars/src/cpp/config.toml b/crates/grammars/src/cpp/config.tomlindex 09672742c5b..b0992c5c120 100644--- a/crates/grammars/src/cpp/config.toml+++ b/crates/grammars/src/cpp/config.toml@@ -1,6 +1,6 @@name = "C++"grammar = "cpp"-path_suffixes = ["cc", "ccm", "hh", "cpp", "cppm", "h", "hpp", "cxx", "cxxm", "hxx", "c++", "c++m", "h++", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"]+path_suffixes = ["cc", "ccm", "hh", "cpp", "cppm", "h", "hpp", "cxx", "cxxm", "hxx", "c++", "c++m", "h++", "hip", "ipp", "inl", "ino", "ixx", "cu", "cuh", "C", "H"]modeline_aliases = ["c++", "cpp", "cxx"]line_comments = ["// ", "/// ", "//! "]first_line_pattern = '^//.*-\*-\s*C\+\+\s*-\*-'