Skip to content

Type to search extensions

Pine Script

v0.1.0

Pine Script language support for Zed (v6-first, with v5 compatibility), including syntax highlighting and basic editor intelligence

Updated 3 months ago
149 downloads 4 stars Repository ↗

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.

Pine Script for Zed


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
  • method
  • type
  • Top-level variables

Editing Support

  • Automatic indentation
  • Bracket matching
  • Quote matching
  • Language configuration
  • .pine and .ps file associations

Installation

From Zed

  1. Open Extensions
  2. Search for Pine Script
  3. Click Install

Development

To use this repository directly during development:

  1. Open the Command Palette
  2. Run Install Dev Extension
  3. 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.

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated