VS Code support for the Zinc language (.zn) used in this repository.
Features
- Syntax highlighting (TextMate grammar)
- Bracket/comment configuration (
#line comments,### ... ###block comments) - Simple semantic highlighting for identifiers bound with
is - Basic diagnostics by running
znc(parse/type errors) - Commands:
Zinc: Lint Current FileZinc: Build Current FileZinc: Run Current File
Settings
zinc.compilerPath(default:build/znc)zinc.enableDiagnostics(default:true)zinc.diagnosticsOnSave(default:true)
Using with this repo
- Build the compiler:
make rebuild - In VS Code, open any
.znfile (for exampleexamples/demo.zn) - Run
Zinc: Lint Current File(or save the file) to see diagnostics