2026-02-09 22:06:25 +00:00
|
|
|
; Outline/symbols query for Storybook DSL
|
|
|
|
|
; Defines what symbols appear in the document outline
|
|
|
|
|
|
|
|
|
|
; Characters
|
2026-02-14 17:43:26 +00:00
|
|
|
(character_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.character
|
|
|
|
|
|
|
|
|
|
; Templates
|
2026-02-14 17:43:26 +00:00
|
|
|
(template_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.template
|
|
|
|
|
|
|
|
|
|
; Life arcs
|
2026-02-14 17:43:26 +00:00
|
|
|
(life_arc_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.life_arc
|
|
|
|
|
|
|
|
|
|
; Life arc states
|
2026-02-14 17:43:26 +00:00
|
|
|
(state_block
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.state
|
|
|
|
|
|
|
|
|
|
; Schedules
|
2026-02-14 17:43:26 +00:00
|
|
|
(schedule_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.schedule
|
|
|
|
|
|
|
|
|
|
; Behaviors
|
2026-02-14 17:43:26 +00:00
|
|
|
(behavior_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.behavior
|
|
|
|
|
|
|
|
|
|
; Institutions
|
2026-02-14 17:43:26 +00:00
|
|
|
(institution_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.institution
|
|
|
|
|
|
|
|
|
|
; Relationships
|
2026-02-14 17:43:26 +00:00
|
|
|
(relationship_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.relationship
|
|
|
|
|
|
|
|
|
|
; Locations
|
2026-02-14 17:43:26 +00:00
|
|
|
(location_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.location
|
|
|
|
|
|
|
|
|
|
; Species
|
2026-02-14 17:43:26 +00:00
|
|
|
(species_declaration
|
2026-02-09 22:06:25 +00:00
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.species
|
|
|
|
|
|
|
|
|
|
; Enums
|
|
|
|
|
(enum_declaration
|
|
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.enum
|
2026-02-14 14:29:29 +00:00
|
|
|
|
|
|
|
|
; Concepts
|
|
|
|
|
(concept_declaration
|
|
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.concept
|
|
|
|
|
|
|
|
|
|
; Sub-concepts
|
|
|
|
|
(sub_concept
|
|
|
|
|
name: (identifier) @name
|
|
|
|
|
) @symbol.sub_concept
|
|
|
|
|
|
feat(lang): rename concept_comparison to definition (v0.3.2)
Renames the `concept_comparison` keyword to `definition` across the
entire codebase for better readability and conciseness.
Changes:
- Tree-sitter grammar: `concept_comparison` node → `definition`
- Tree-sitter queries: highlights, outline, and indents updated
- Zed extension highlights.scm updated to match
- Lexer: `Token::ConceptComparison` → `Token::Definition`
- Parser: `ConceptComparisonDecl` rule → `DefinitionDecl`
- AST: `Declaration::ConceptComparison` → `Declaration::Definition`,
`ConceptComparisonDecl` struct → `DefinitionDecl`
- All Rust source files updated (validate, names, convert, references,
semantic_tokens, symbols, code_actions, hover, completion)
- `validate_concept_comparison_patterns` → `validate_definition_patterns`
- Example file and test corpus updated
- Spec docs: created SBIR-v0.3.2-SPEC.md, updated TYPE-SYSTEM.md,
README.md, SBIR-CHANGELOG.md, SBIR-v0.3.1-SPEC.md
2026-02-23 20:37:52 +00:00
|
|
|
; Definitions
|
|
|
|
|
(definition
|
2026-02-14 14:29:29 +00:00
|
|
|
name: (identifier) @name
|
feat(lang): rename concept_comparison to definition (v0.3.2)
Renames the `concept_comparison` keyword to `definition` across the
entire codebase for better readability and conciseness.
Changes:
- Tree-sitter grammar: `concept_comparison` node → `definition`
- Tree-sitter queries: highlights, outline, and indents updated
- Zed extension highlights.scm updated to match
- Lexer: `Token::ConceptComparison` → `Token::Definition`
- Parser: `ConceptComparisonDecl` rule → `DefinitionDecl`
- AST: `Declaration::ConceptComparison` → `Declaration::Definition`,
`ConceptComparisonDecl` struct → `DefinitionDecl`
- All Rust source files updated (validate, names, convert, references,
semantic_tokens, symbols, code_actions, hover, completion)
- `validate_concept_comparison_patterns` → `validate_definition_patterns`
- Example file and test corpus updated
- Spec docs: created SBIR-v0.3.2-SPEC.md, updated TYPE-SYSTEM.md,
README.md, SBIR-CHANGELOG.md, SBIR-v0.3.1-SPEC.md
2026-02-23 20:37:52 +00:00
|
|
|
) @symbol.definition
|