Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

languages: Support enum class/struct in outline in C++ (#46121)

ozacoddea9d13709de
diff --git a/crates/languages/src/cpp/outline.scm b/crates/languages/src/cpp/outline.scm
index 30e0c8da45f..f833919e7aa 100644
--- a/crates/languages/src/cpp/outline.scm
+++ b/crates/languages/src/cpp/outline.scm
@@ -28,6 +28,10 @@
(enum_specifier
"enum" @context
+ [
+ "class"
+ "struct"
+ ]? @context
name: (_) @name) @item
(union_specifier