2026-02-09 22:06:25 +00:00
|
|
|
; Indentation query for Storybook DSL
|
|
|
|
|
|
|
|
|
|
; Increase indent after opening braces
|
|
|
|
|
[
|
|
|
|
|
"{"
|
|
|
|
|
"("
|
|
|
|
|
"["
|
|
|
|
|
] @indent.begin
|
|
|
|
|
|
|
|
|
|
; Decrease indent before closing braces
|
|
|
|
|
[
|
|
|
|
|
"}"
|
|
|
|
|
")"
|
|
|
|
|
"]"
|
|
|
|
|
] @indent.end
|
|
|
|
|
|
|
|
|
|
; Special handling for prose blocks
|
|
|
|
|
(prose_block
|
|
|
|
|
marker: (prose_marker) @indent.begin
|
|
|
|
|
content: (_)
|
|
|
|
|
end: (_) @indent.end
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
; Block structures that should indent their contents
|
|
|
|
|
[
|
|
|
|
|
(block)
|
2026-02-14 17:43:26 +00:00
|
|
|
(character_declaration)
|
|
|
|
|
(template_declaration)
|
|
|
|
|
(life_arc_declaration)
|
|
|
|
|
(state_block)
|
|
|
|
|
(schedule_declaration)
|
2026-02-09 22:06:25 +00:00
|
|
|
(schedule_block)
|
2026-02-14 17:43:26 +00:00
|
|
|
(behavior_declaration)
|
|
|
|
|
(institution_declaration)
|
|
|
|
|
(relationship_declaration)
|
|
|
|
|
(location_declaration)
|
|
|
|
|
(species_declaration)
|
2026-02-09 22:06:25 +00:00
|
|
|
(enum_declaration)
|
|
|
|
|
(selector_node)
|
|
|
|
|
(sequence_node)
|
2026-02-14 14:29:29 +00:00
|
|
|
(decorator_node)
|
|
|
|
|
(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
|
|
|
(definition)
|
2026-02-14 14:29:29 +00:00
|
|
|
(variant_pattern)
|
2026-02-09 22:06:25 +00:00
|
|
|
] @indent.begin
|
|
|
|
|
|
|
|
|
|
; Dedent after semicolon at top level
|
|
|
|
|
(use_declaration ";" @indent.end)
|