Back to Trending
RepositoryTypeScriptTRTürkiye
yankikucuk

yankikucuk/pine-script-syntax-highlighter

Pine Script Syntax highlighter for VSCode

54stars
10forks
0issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: v6

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: highlighter

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: highlight

#1 Repository Của Tuần

🖌️ Nhấn mạnh cú pháp Pine Script v6 ngay trong VS Code

Một TextMate grammar được sinh hoạt động, không còn phải viết tay.

Pine Script Syntax Highlighter là tiện ích mở rộng VS Code cung cấp đánh dấu cú pháp, snippet và hỗ trợ soạn thảo cho Pine Script® v6 — ngôn ngữ lập trình của TradingView. Dự án do Yankı Küçük phát triển, tập trung vào độ chính xác và khả năng cập nhật từ tham chiếu chính thức.

✨ Điểm nổi bật

  • Hỗ trợ đầy đủ v6: Bao phủ mọi namespace như ta, math, str, array, matrix, map, request, strategy, input, label, line, box, table, polyline, log, runtime, chart, footprint.
  • Cú pháp hiện đại: Hỗ trợ switch, while, once, for ... in, method, type, enum, import ... as, export, varip, type qualifiers (series, simple, const, input) và generics như array<float>.
  • Chú thích biên dịch: Đánh dấu //@version=6, //@description, //@function, //@param, //@returns, //@type, //@field, //@variable, //@enum, //@strategy_alert_message.
  • Xử lý chuỗi hoàn hảo: Hỗ trợ chuỗi đơn, kép, ba dấu ngoặc kép đa dòng và str.format placeholders như {0,number,#.##}.
  • Số và màu sắc: Nhận diện số nguyên, số thực, số mũ và mã màu hex với alpha (#RRGGBBAA).
  • Mã người dùng: Đánh dấu hàm, tham số có tên, destructuring tuple ([a, b] = f()), hàm tạo kiểu người dùng (Point.new()) và truy cập thành viên.
  • Hỗ trợ trình soạn thảo: Gập theo thụt lề, tự động đóng ngoặc/huy hiệu, // region / // endregion, mặc định 4 khoảng trống cho .pine.
  • Snippet: Cung cấp indicator, strategy, library, fn, method, type, enum, if, switch, for, forin, while, once, input.int, input.float, request.security, plot, alertcondition và nhiều hơn.

💡 Vì sao đáng chú ý

Khác với các grammar tĩnh, dự án này sinh grammar từ dữ liệu (src/grammar.mjs → syntaxes/pinescript.tmLanguage.json). Danh sách định danh được rút ra từ tham chiếu Pine Script v6 chính thức. Khi TradingView thêm built-in mới, chỉ cần cập nhật JSON tương ứng, chạy build và grammar tự động cập nhật. Phù hợp cho người viết chiến lược giao dịjện tự động trên TradingView.


#PineScript #VSCode #SyntaxHighlighter #TradingView #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
huozhi/sugar-high

Super lightweight code syntax highlighter solution

1.4k
Nov 15, 2026
RepositoryGo
alecthomas/chroma

A general purpose syntax highlighter in pure Go

5.1k
Nov 17, 2026
RepositoryJavaScript
wooorm/starry-night

Syntax highlighting, like GitHub

1.8k
Aug 30, 2026
RepositoryTypeScript
Kilo-Org/kilocode

Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent.

28.1k
Nov 19, 2026
RepositoryTypeScript
VSCodeVim/Vim

:star: Vim for Visual Studio Code

15.2k
Nov 19, 2026
RepositoryTypeScript
yoavbls/pretty-ts-errors

🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀

14.1k
Nov 16, 2026
RepositoryTypeScript
gitkraken/vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more

10.0k
Nov 18, 2026
RepositoryTypeScript
vscode-neovim/vscode-neovim

Vim mode for VSCode, powered by Neovim

7.8k
Nov 7, 2026
RepositoryTypeScript
shufo/vscode-blade-formatter

An opinionated Blade file formatter for VSCode

5.3k
Oct 31, 2026