Türkiyeyankikucuk/pine-script-syntax-highlighter
Pine Script Syntax highlighter for VSCode
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#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.formatplaceholders 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,alertconditionvà 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.
Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent.
🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀
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