release: Storybook v0.2.0 - Major syntax and features update
BREAKING CHANGES: - Relationship syntax now requires blocks for all participants - Removed self/other perspective blocks from relationships - Replaced 'guard' keyword with 'if' for behavior tree decorators Language Features: - Add tree-sitter grammar with improved if/condition disambiguation - Add comprehensive tutorial and reference documentation - Add SBIR v0.2.0 binary format specification - Add resource linking system for behaviors and schedules - Add year-long schedule patterns (day, season, recurrence) - Add behavior tree enhancements (named nodes, decorators) Documentation: - Complete tutorial series (9 chapters) with baker family examples - Complete reference documentation for all language features - SBIR v0.2.0 specification with binary format details - Added locations and institutions documentation Examples: - Convert all examples to baker family scenario - Add comprehensive working examples Tooling: - Zed extension with LSP integration - Tree-sitter grammar for syntax highlighting - Build scripts and development tools Version Updates: - Main package: 0.1.0 → 0.2.0 - Tree-sitter grammar: 0.1.0 → 0.2.0 - Zed extension: 0.1.0 → 0.2.0 - Storybook editor: 0.1.0 → 0.2.0
This commit is contained in:
28
src/bin/storybook-lsp.rs
Normal file
28
src/bin/storybook-lsp.rs
Normal file
@@ -0,0 +1,28 @@
|
||||
//! Storybook Language Server
|
||||
//!
|
||||
//! LSP server providing language support for Storybook DSL including:
|
||||
//! - Real-time diagnostics
|
||||
//! - Hover information
|
||||
//! - Document symbols (outline)
|
||||
//! - Go-to-definition
|
||||
//! - Find references
|
||||
//! - Autocomplete
|
||||
//! - Document formatting
|
||||
|
||||
use tower_lsp::{
|
||||
LspService,
|
||||
Server,
|
||||
};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
env_logger::init();
|
||||
|
||||
let stdin = tokio::io::stdin();
|
||||
let stdout = tokio::io::stdout();
|
||||
|
||||
let (service, socket) =
|
||||
LspService::new(storybook::lsp::StorybookLanguageServer::new);
|
||||
|
||||
Server::new(stdin, stdout, socket).serve(service).await;
|
||||
}
|
||||
Reference in New Issue
Block a user