OM Language for VS Code

Powerful VS Code extension for OM Lang (.om files) providing syntax highlighting, full IntelliSense, real-time diagnostics, code formatting, snippets, AST visualization, and integrated compiler support.
Supports multiple locales: full LSP for Hinglish, Hindi, Sanskrit + syntax highlighting for 6 additional Indian languages.
Made with ❤️ by Anand Shah for the developer community
OM Lang is a localized variant of the V programming language. This extension delivers a complete IDE experience.
✨ Features
- 🌈 Multi-locale Syntax Highlighting (Hinglish, Hindi Devanagari, Sanskrit, Bengali, Gujarati, Kannada, Malayalam, Marathi, Tamil, Telugu)
- 🧠 Advanced Language Server with completion, hover, go-to-definition, references, rename, signature help, semantic tokens, document symbols
- 📝 Configurable Formatter (indent size, brace style, import sorting)
- 🛠️ Robust Diagnostics for syntax, semantic errors, unused vars, unreachable code
- 📦 Rich Snippets for common patterns including error handling (
or {}, ?)
- 🚀 Commands: Run File, Compile, Show AST, Show Parse Tree, Format, Restart Server
- 🔍 V-derived syntax support: range expressions, optional types, string interpolation with
₹
See examples/ and examples/vendor/ for real OM Lang sample files that fully exercise the extension.
🚀 Installation
From Marketplace:
- Open Extensions sidebar in VS Code
- Search for "OM Language"
- Install the one published by AnandShah
Alternative:
- Download
.vsix from GitHub Releases or build locally (see DEVELOPMENT.md)
code --install-extension om-language-0.2.0.vsix
⌨️ Usage
- Command Palette (
Ctrl+Shift+P): Search for "OM:" to access all commands
- Editor title bar buttons for quick Run and Compile
- Right-click context menu and standard LSP features (hover, Ctrl+click, etc.)
- Configure via Settings UI: search for "om."
Key Commands:
- OM: Run File
- OM: Compile File
- OM: Show AST
- OM: Format Document
⚙️ Settings
See full list in VS Code settings.json or the extension settings page. Main ones:
om.language: hinglish (default), hindi, or sanskrit
om.format.enable, om.format.indentSize, om.format.braceStyle
om.lint.enable, om.compilerPath
📚 Additional Documentation
- DEVELOPMENT.md: Setup, architecture, technical deep-dive (binary analysis, spec gaps, how to extend locales), publishing steps
- CONTRIBUTING.md: How to contribute, code standards
- CHANGELOG.md: Version history (v0.2.0 major update based on real compiler)
- LICENSE: MIT
Made with ❤️ by Anand Shah for developer community
Independent open source project. OM Lang belongs to omlang.com.
| |