diff --git a/crates/zed/src/languages/javascript/outline.scm b/crates/zed/src/languages/javascript/outline.scm index f8691fa41d..a1d4d339e8 100644 --- a/crates/zed/src/languages/javascript/outline.scm +++ b/crates/zed/src/languages/javascript/outline.scm @@ -18,6 +18,13 @@ "interface" @context name: (_) @name) @item +(program + (export_statement + (lexical_declaration + ["let" "const"] @context + (variable_declarator + name: (_) @name) @item))) + (program (lexical_declaration ["let" "const"] @context