Pine Script for Zed
Pine Script language support for Zed.
This extension provides native support for TradingView Pine Script, including syntax highlighting, structural outline, language configuration, and basic editing features powered by Tree-sitter.

Status
Note
This project has been merged into the official Zed Extensions repository.
If you're using a recent version of Zed, simply search for Pine Script in the built-in Extensions panel and install it directly.
Features
Language Support
- Pine Script v6 support
- Backward compatible with Pine Script v5
Syntax Highlighting
Tree-sitter powered syntax highlighting for Pine Script source code.
Symbol Outline
Supports document symbols for:
indicator(...)strategy(...)library(...)- User-defined functions
methodtype- Top-level variables
Editing Support
- Automatic indentation
- Bracket matching
- Quote matching
- Language configuration
.pineand.psfile associations
Installation
From Zed
- Open Extensions
- Search for Pine Script
- Click Install
Development
To use this repository directly during development:
- Open the Command Palette
- Run Install Dev Extension
- Select this repository
The extension loads the Tree-sitter grammar declared in extension.toml and does not require an extension WASM module.
Current Status
This extension is considered a stable MVP.
The grammar aims to support Pine Script v6 while continuing to improve alongside future language updates.
Current limitations include:
- No Language Server (LSP)
- No diagnostics
- No code completion
- No hover information
- No go-to-definition
- No snippets
- Partial support for advanced Tree-sitter queries (folds, locals, tags)
Why This Project
Pine Script is one of the most widely used scripting languages for technical analysis and quantitative trading.
This project brings native Pine Script editing support to Zed through Tree-sitter, providing a lightweight, fast, and idiomatic editing experience while remaining fully aligned with the Zed extension architecture.
Contributing
Issues and pull requests are welcome.
If you encounter incorrect parsing, highlighting issues, or unsupported Pine Script syntax, please open an issue with a minimal reproducible example.
References
License
Licensed under the MIT License.
See LICENSE for details.