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"
|
id = "storybook"
|
||||||
name = "Storybook"
|
name = "Storybook"
|
||||||
description = "Language support for Storybook narrative DSL"
|
description = "Language support for Storybook narrative DSL"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
schema_version = 1
|
schema_version = 1
|
||||||
authors = ["Storybook Contributors"]
|
authors = ["Storybook Contributors"]
|
||||||
repository = "https://github.com/r3t-studios/storybook"
|
repository = "https://github.com/r3t-studios/storybook"
|
||||||
|
|
||||||
[grammars.storybook]
|
[grammars.storybook]
|
||||||
repository = "https://github.com/r3t-studios/storybook"
|
repository = "https://github.com/r3t-studios/storybook"
|
||||||
rev = "mainline"
|
rev = "c49b00a2dc094974db4e71716a4a140ecc675832"
|
||||||
path = "tree-sitter-storybook"
|
path = "tree-sitter-storybook"
|
||||||
|
|
||||||
[language_servers.storybook-lsp]
|
[language_servers.storybook-lsp]
|
||||||
|
|||||||
@@ -18,6 +18,9 @@
|
|||||||
"species"
|
"species"
|
||||||
"enum"
|
"enum"
|
||||||
"state"
|
"state"
|
||||||
|
"concept"
|
||||||
|
"sub_concept"
|
||||||
|
"concept_comparison"
|
||||||
] @keyword.declaration
|
] @keyword.declaration
|
||||||
|
|
||||||
; Keywords - Control flow and modifiers
|
; Keywords - Control flow and modifiers
|
||||||
@@ -44,6 +47,7 @@
|
|||||||
"remove"
|
"remove"
|
||||||
"append"
|
"append"
|
||||||
"is"
|
"is"
|
||||||
|
"any"
|
||||||
] @keyword.special
|
] @keyword.special
|
||||||
|
|
||||||
; Boolean literals
|
; Boolean literals
|
||||||
@@ -73,9 +77,16 @@
|
|||||||
(species name: (identifier) @type.species)
|
(species name: (identifier) @type.species)
|
||||||
(enum_declaration name: (identifier) @type.enum)
|
(enum_declaration name: (identifier) @type.enum)
|
||||||
(arc_state name: (identifier) @type.state)
|
(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 names
|
||||||
(field name: (dotted_path) @property)
|
(field name: (dotted_path) @property)
|
||||||
|
(sub_concept_field name: (identifier) @property)
|
||||||
|
|
||||||
; Species reference
|
; Species reference
|
||||||
(character species: (identifier) @type.builtin)
|
(character species: (identifier) @type.builtin)
|
||||||
|
|||||||
Reference in New Issue
Block a user