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
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user