From de95332fe1a5f961cb3a192d8eebda8480fdec04 Mon Sep 17 00:00:00 2001 From: Sienna Meridian Satterwhite Date: Sat, 14 Feb 2026 14:30:57 +0000 Subject: [PATCH] feat(zed): update extension for v0.3 grammar Updated extension.toml: - Version bumped to 0.3.0 - Grammar rev updated to v0.3 tree-sitter commit Updated Zed highlights.scm with type system support: - concept, sub_concept, concept_comparison keywords - any keyword highlighting - Named field highlights for type system declarations - Template species reference highlighting - sub_concept_field property highlighting --- zed-storybook/extension.toml | 4 ++-- zed-storybook/languages/storybook/highlights.scm | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/zed-storybook/extension.toml b/zed-storybook/extension.toml index b68ec93..fe68ef0 100644 --- a/zed-storybook/extension.toml +++ b/zed-storybook/extension.toml @@ -1,14 +1,14 @@ id = "storybook" name = "Storybook" description = "Language support for Storybook narrative DSL" -version = "0.2.0" +version = "0.3.0" schema_version = 1 authors = ["Storybook Contributors"] repository = "https://github.com/r3t-studios/storybook" [grammars.storybook] repository = "https://github.com/r3t-studios/storybook" -rev = "mainline" +rev = "c49b00a2dc094974db4e71716a4a140ecc675832" path = "tree-sitter-storybook" [language_servers.storybook-lsp] diff --git a/zed-storybook/languages/storybook/highlights.scm b/zed-storybook/languages/storybook/highlights.scm index 033be05..e167cc5 100644 --- a/zed-storybook/languages/storybook/highlights.scm +++ b/zed-storybook/languages/storybook/highlights.scm @@ -18,6 +18,9 @@ "species" "enum" "state" + "concept" + "sub_concept" + "concept_comparison" ] @keyword.declaration ; Keywords - Control flow and modifiers @@ -44,6 +47,7 @@ "remove" "append" "is" + "any" ] @keyword.special ; Boolean literals @@ -73,9 +77,16 @@ (species name: (identifier) @type.species) (enum_declaration name: (identifier) @type.enum) (arc_state name: (identifier) @type.state) +(concept_declaration name: (identifier) @type.concept) +(sub_concept parent: (identifier) @type.concept) +(sub_concept name: (identifier) @type.sub_concept) +(concept_comparison name: (identifier) @type.concept_comparison) +(variant_pattern name: (identifier) @type.variant) +(template species: (identifier) @type.builtin) ; Field names (field name: (dotted_path) @property) +(sub_concept_field name: (identifier) @property) ; Species reference (character species: (identifier) @type.builtin)