From fbca1f8912b46804c5853a2373b50bcf2852cd1f Mon Sep 17 00:00:00 2001 From: SR_team Date: Mon, 18 Mar 2024 00:49:52 +0200 Subject: [PATCH] Add more C++ extensions for AST parser (#972) --- core/util/treeSitter.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/util/treeSitter.ts b/core/util/treeSitter.ts index a308cacb3a..4a54f20445 100644 --- a/core/util/treeSitter.ts +++ b/core/util/treeSitter.ts @@ -8,6 +8,14 @@ export const supportedLanguages: { [key: string]: string } = { cc: "cpp", cxx: "cpp", hxx: "cpp", + cp: "cpp", + hh: "cpp", + inc: "cpp", + // Depended on this PR: https://github.com/tree-sitter/tree-sitter-cpp/pull/173 + // ccm: "cpp", + // c++m: "cpp", + // cppm: "cpp", + // cxxm: "cpp", cs: "c_sharp", c: "c", h: "c",