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.

Update outline queries; add enum as a highlighted keyword

Piotr Osiewicz608c16342c0e
diff --git a/crates/zed/src/languages/php/highlights.scm b/crates/zed/src/languages/php/highlights.scm
index 666a49be2a4..fcb087c47d1 100644
--- a/crates/zed/src/languages/php/highlights.scm
+++ b/crates/zed/src/languages/php/highlights.scm
@@ -88,6 +88,7 @@
"echo" @keyword
"else" @keyword
"elseif" @keyword
+"enum" @keyword
"enddeclare" @keyword
"endforeach" @keyword
"endif" @keyword
diff --git a/crates/zed/src/languages/php/outline.scm b/crates/zed/src/languages/php/outline.scm
index 57ea2ae3348..4934bc494d0 100644
--- a/crates/zed/src/languages/php/outline.scm
+++ b/crates/zed/src/languages/php/outline.scm
@@ -5,4 +5,22 @@
(function_definition
"function" @context
- name: (_) @name) @item
+ name: (_) @name
+ ) @item
+
+
+
+(method_declaration
+ "function" @context
+ name: (_) @name
+ ) @item
+
+(interface_declaration
+ "interface" @context
+ name: (_) @name
+ ) @item
+
+(enum_declaration
+ "enum" @context
+ name: (_) @name
+ ) @item