Syntax highlighting and basic language support for The Language (.zvo files). .zvo stands for The Language Virtual Object.
TODO: implement our own language server for the-lang
Features
Syntax highlighting for keywords, types, strings, numbers, operators, and identifiers.
Support for comments (//, /* */).
Language configuration for auto-closing brackets and comments.
Installation
Open Visual Studio Code.
Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on Mac).
Search for "ext:zvo".
Click Install.
Usage
Create or open a file with the .zvo extension to enable Zov language support.
def sum(nums: number[]): number {
let result = 0;
for (const num of nums) {
result += num;
}
return result;
}
if (result > 0) {
print("Positive sum");
} else if (result < 0) {
print("Negative sum");
} else {
print("Zero sum");
}