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 +1 -1
- package/README.md +29 -69
- package/package.json +1 -1
- package/zenith-language/.gitattributes +0 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,85 +1,45 @@
|
|
|
1
|
-
#
|
|
1
|
+
# zenith-language ⚡
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
VS Code extension providing world-class development support for the Zenith framework.
|
|
4
4
|
|
|
5
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
9
|
+
## Features
|
|
34
10
|
|
|
35
|
-
|
|
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
|
-
##
|
|
17
|
+
## Supported Extensions
|
|
38
18
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
##
|
|
23
|
+
## Recommended Settings
|
|
49
24
|
|
|
50
|
-
|
|
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
|
-
|
|
54
|
-
- `<script>` blocks use JavaScript/TypeScript highlighting with additional Zenith keyword recognition
|
|
55
|
-
- `<style>` blocks use standard CSS highlighting
|
|
27
|
+
## Development
|
|
56
28
|
|
|
57
|
-
|
|
58
|
-
|
|
29
|
+
```bash
|
|
30
|
+
# Clone the repository
|
|
31
|
+
git clone https://github.com/zenithbuild/zenith.git
|
|
59
32
|
|
|
60
|
-
|
|
61
|
-
|
|
33
|
+
# Navigate to language package
|
|
34
|
+
cd zenith-language
|
|
62
35
|
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
##
|
|
43
|
+
## License
|
|
80
44
|
|
|
81
|
-
|
|
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.
|
|
5
|
+
"version": "0.2.9",
|
|
6
6
|
"publisher": "ZenithBuild",
|
|
7
7
|
"engines": {
|
|
8
8
|
"vscode": "^1.80.0"
|