From 84fe1bfe9b112e6200922f915b25a422faa43333 Mon Sep 17 00:00:00 2001 From: Devzeth <47153906+devzeth@users.noreply.github.com> Date: Mon, 10 Mar 2025 15:10:29 +0100 Subject: [PATCH] Recognize ixx as part of the cpp suffix (#26333) Adds "ixx" as path suffix to be recognized for c++. > ixx documentation https://learn.microsoft.com/en-us/cpp/cpp/modules-cpp?view=msvc- I've also added it to the icon file. Release Notes: - N/A --- crates/languages/src/cpp/config.toml | 2 +- crates/theme/src/icon_theme.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/languages/src/cpp/config.toml b/crates/languages/src/cpp/config.toml index 6aba8727f3b4250e5e44fac24a6519ede86fb5eb..ebd78870a29c760d1a5a34e791d0e2413a0de140 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++", "ipp", "inl", "cu", "cuh", "C", "H"] +path_suffixes = ["cc", "hh", "cpp", "h", "hpp", "cxx", "hxx", "c++", "ipp", "inl", "ixx", "cu", "cuh", "C", "H"] line_comments = ["// ", "/// ", "//! "] autoclose_before = ";:.,=}])>" brackets = [ diff --git a/crates/theme/src/icon_theme.rs b/crates/theme/src/icon_theme.rs index 637e41a58636db84aa42231753594858f39714fd..725fc3409c222ec169190f31d77ca33789b51d2b 100644 --- a/crates/theme/src/icon_theme.rs +++ b/crates/theme/src/icon_theme.rs @@ -85,7 +85,7 @@ const FILE_SUFFIXES_BY_ICON_KEY: &[(&str, &[&str])] = &[ ("coffeescript", &["coffee"]), ( "cpp", - &["c++", "cc", "cpp", "cxx", "hh", "hpp", "hxx", "inl"], + &["c++", "cc", "cpp", "cxx", "hh", "hpp", "hxx", "inl", "ixx"], ), ("crystal", &["cr", "ecr"]), ("csharp", &["cs"]),