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: Add union field declarations to outline in C++ (#46127)

ozacod658d419afc42
diff --git a/crates/languages/src/cpp/outline.scm b/crates/languages/src/cpp/outline.scm
index 9c819fd7084..30e0c8da45f 100644
--- a/crates/languages/src/cpp/outline.scm
+++ b/crates/languages/src/cpp/outline.scm
@@ -30,6 +30,10 @@
"enum" @context
name: (_) @name) @item
+(union_specifier
+ "union" @context
+ name: (_) @name) @item
+
(enumerator
name: (_) @name) @item