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
73 lines
1.2 KiB
Scheme
73 lines
1.2 KiB
Scheme
; Outline/symbols query for Storybook DSL
|
|
; Defines what symbols appear in the document outline
|
|
|
|
; Characters
|
|
(character_declaration
|
|
name: (identifier) @name
|
|
) @symbol.character
|
|
|
|
; Templates
|
|
(template_declaration
|
|
name: (identifier) @name
|
|
) @symbol.template
|
|
|
|
; Life arcs
|
|
(life_arc_declaration
|
|
name: (identifier) @name
|
|
) @symbol.life_arc
|
|
|
|
; Life arc states
|
|
(state_block
|
|
name: (identifier) @name
|
|
) @symbol.state
|
|
|
|
; Schedules
|
|
(schedule_declaration
|
|
name: (identifier) @name
|
|
) @symbol.schedule
|
|
|
|
; Behaviors
|
|
(behavior_declaration
|
|
name: (identifier) @name
|
|
) @symbol.behavior
|
|
|
|
; Institutions
|
|
(institution_declaration
|
|
name: (identifier) @name
|
|
) @symbol.institution
|
|
|
|
; Relationships
|
|
(relationship_declaration
|
|
name: (identifier) @name
|
|
) @symbol.relationship
|
|
|
|
; Locations
|
|
(location_declaration
|
|
name: (identifier) @name
|
|
) @symbol.location
|
|
|
|
; Species
|
|
(species_declaration
|
|
name: (identifier) @name
|
|
) @symbol.species
|
|
|
|
; Enums
|
|
(enum_declaration
|
|
name: (identifier) @name
|
|
) @symbol.enum
|
|
|
|
; Concepts
|
|
(concept_declaration
|
|
name: (identifier) @name
|
|
) @symbol.concept
|
|
|
|
; Sub-concepts
|
|
(sub_concept
|
|
name: (identifier) @name
|
|
) @symbol.sub_concept
|
|
|
|
; Definitions
|
|
(definition
|
|
name: (identifier) @name
|
|
) @symbol.definition
|