fix: make cpp highlights inherit from c highlights

closes #42
This commit is contained in:
CJ van den Berg 2024-09-11 15:51:40 +02:00
parent f516cca41b
commit 3aa9e32159
2 changed files with 6 additions and 0 deletions

View file

@ -43,6 +43,10 @@ pub const cpp = .{
.icon = "",
.extensions = .{ "cc", "cpp", "cxx", "hpp", "hxx", "h", "ipp", "ixx" },
.comment = "//",
.highlights_list = .{
"tree-sitter-c/queries/highlights.scm",
"tree-sitter-cpp/queries/highlights.scm",
},
.injections = "tree-sitter-cpp/queries/injections.scm",
.formatter = .{"clang-format"},
.language_server = .{"clangd"},