zenith-language 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Zenith Build
3
+ Copyright (c) 2026 Zenith Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,85 +1,45 @@
1
- # Zenith VS Code Extension
1
+ # zenith-language
2
2
 
3
- Syntax highlighting and editor support for `.zen` files.
3
+ VS Code extension providing world-class development support for the Zenith framework.
4
4
 
5
- ## Features
6
-
7
- - **Syntax Highlighting** for `.zen` files
8
- - **HTML-first** structure recognition
9
- - **Embedded JavaScript** in `<script>` blocks with Zenith-specific keywords (`state`, `zenOnMount`, etc.)
10
- - **Embedded CSS** in `<style>` blocks
11
- - **Expression highlighting** for `{expression}` syntax in HTML
12
- - **Component recognition** for capitalized tags (e.g., `<DefaultLayout>`)
13
- - **Slot support** for `<slot />` elements
14
- - **Bracket matching** and auto-closing
15
-
16
- ## Zenith-Specific Scopes
17
-
18
- | Syntax | Scope |
19
- |--------|-------|
20
- | `state count = 0` | `storage.type.state.zen` |
21
- | `zenOnMount(() => {})` | `support.function.lifecycle.zen` |
22
- | `<DefaultLayout>` | `entity.name.tag.component.zen` |
23
- | `<slot />` | `keyword.control.slot.zen` |
24
- | `{expression}` | `meta.embedded.expression.zen` |
25
-
26
- ## Installation (Development)
5
+ ## Overview
27
6
 
28
- 1. Copy this folder to your VS Code extensions directory:
29
- - **macOS**: `~/.vscode/extensions/zenith-lang`
30
- - **Windows**: `%USERPROFILE%\.vscode\extensions\zenith-lang`
31
- - **Linux**: `~/.vscode/extensions/zenith-lang`
7
+ `zenith-language` brings the Zenith development experience into VS Code. It provides syntax highlighting, intelligent code completion, and deep integration with the Zenith LSP to make building reactive apps a breeze.
32
8
 
33
- 2. Restart VS Code
9
+ ## Features
34
10
 
35
- 3. Open any `.zen` file
11
+ - **Syntax Highlighting**: Expertly crafted TextMate grammar for `.zen` files, including embedded JavaScript, TypeScript, and CSS.
12
+ - **IntelliSense**: Smart completions for Zenith components, hooks, and reactive state.
13
+ - **Emmet Support**: Accelerated HTML development inside `.zen` templates.
14
+ - **Project Scaffolding**: Integrated support for starting new projects.
15
+ - **LSP Integration**: Leverages `@zenith/language-server` for powerful diagnostics and refactoring.
36
16
 
37
- ## File Structure
17
+ ## Supported Extensions
38
18
 
39
- ```
40
- zenith-vscode/
41
- ├── package.json # Extension manifest
42
- ├── language-configuration.json # Brackets, comments, folding
43
- ├── syntaxes/
44
- │ └── zenith.tmLanguage.json # TextMate grammar
45
- └── README.md
46
- ```
19
+ - `.zen`
20
+ - `.zenx`
21
+ - `.zen.html`
47
22
 
48
- ## Grammar Design Notes
23
+ ## Recommended Settings
49
24
 
50
- ### HTML Base
51
- The grammar treats `.zen` files as HTML-first documents. Standard HTML tags are recognized and highlighted with `entity.name.tag.html.zen` scope.
25
+ The extension automatically configures your editor for the best experience. For more details on customization, see the VS Code settings for Zenith.
52
26
 
53
- ### Embedded Languages
54
- - `<script>` blocks use JavaScript/TypeScript highlighting with additional Zenith keyword recognition
55
- - `<style>` blocks use standard CSS highlighting
27
+ ## Development
56
28
 
57
- ### Expression Syntax
58
- Single brace expressions `{...}` are recognized in HTML content and attributes. The content is highlighted as JavaScript. **Double braces `{{}}` are NOT supported** per Zenith syntax rules.
29
+ ```bash
30
+ # Clone the repository
31
+ git clone https://github.com/zenithbuild/zenith.git
59
32
 
60
- ### Component Tags
61
- Capitalized tags like `<DefaultLayout>` are recognized as Zenith components and receive `entity.name.tag.component.zen` scope for distinct styling.
33
+ # Navigate to language package
34
+ cd zenith-language
62
35
 
63
- ### Zenith Keywords
64
- The following Zenith-specific keywords are recognized in script blocks:
65
- - `state` - reactive state declaration
66
- - `zenOnMount` - lifecycle hook
67
- - `zenOnDestroy` - lifecycle hook
68
- - `zenOnUpdate` - lifecycle hook
69
- - `zenEffect` - effect declaration
36
+ # Install dependencies
37
+ bun install
70
38
 
71
- ## REDCMD Compatibility
72
-
73
- This grammar is authored following TextMate/REDCMD patterns:
74
- - Uses standard `begin`/`end` capture groups
75
- - Defines reusable patterns in `repository`
76
- - Uses hierarchical scope names
77
- - Compatible with VS Code's grammar engine
39
+ # Build the server and compile the extension
40
+ bun run build:all
41
+ ```
78
42
 
79
- ## Future Work
43
+ ## License
80
44
 
81
- - [ ] IntelliSense / LSP support
82
- - [ ] Snippets for common patterns
83
- - [ ] Go-to-definition for components
84
- - [ ] Hover documentation
85
- # zenith-language
45
+ MIT
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "zenith-language",
3
3
  "displayName": "Zenith Language Support",
4
4
  "description": "Syntax highlighting, IntelliSense, and editor support for Zenith Framework (.zen files)",
5
- "version": "0.2.8",
5
+ "version": "0.2.9",
6
6
  "publisher": "ZenithBuild",
7
7
  "engines": {
8
8
  "vscode": "^1.80.0"
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto