Syntax highlighting and basic language configuration for the Harneet programming language (.ha).
- Syntax highlighting via TextMate grammar
- Language configuration for comments, brackets, and auto-closing pairs
- File association for
.ha
package.json— VS Code extension manifest (contributes language + grammar)syntaxes/harneet.tmLanguage.json— TextMate grammarlanguage-configuration.json— Comment styles, brackets, auto-close pairsREADME.md— This file
Option A: Launch an Extension Development Host
- Open this folder in VS Code:
File → Open Folder…and selectharneet_org/vscode/. - Press
F5(Run → Start Debugging) to launch a new VS Code window with the extension loaded. - Open a
.hafile — it should be highlighted as Harneet.
Option B: Package and install as VSIX
- Install VSCE if you don't have it:
npm install -g @vscode/vsce
- From this folder, run:
This creates a
vsce package
.vsixfile (e.g.,harneet-language-support-0.0.1.vsix). - In VS Code, run
Extensions: Install from VSIX...and select the generated.vsix.
- Line comments:
// ... - Block comments:
/* ... */ - Strings: double-quoted with escapes
- Numbers: integers and floats
- Keywords:
var,function,type,struct,import, control-flow keywords - Builtins (basic):
range,enumerate,len - Module functions:
module.member(...)(e.g.,fmt.Printf(...))
MIT