This extension provides syntax highlighting for the V9E Domain-Specific Language (DSL) in Visual Studio Code.
Features
Syntax Highlighting: Get clear and distinct colors for keywords (type, event, enum, group), type names, event names, enum names, group names, enum members, property definitions, built-in types (string, int32), comments, strings, and numbers in your .v9e files.
Usage
Install the Extension:
Open Visual Studio Code.
Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
Search for "V9E Language" (or your extension's published name).
Click "Install".
Open a .v9e File:
Create or open any file with the .v9e extension.
The extension will automatically apply V9E syntax highlighting.
Default Theme:
This extension includes a basic "V9E Default Syntax" color theme. To ensure the intended coloring is applied:
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
Type Color Theme and select Preferences: Color Theme.
Choose "V9E Default Syntax" from the list.
Even if you use another VS Code theme, the extension's specific token scopes (.v9e suffixes) will try to integrate with that theme's existing color rules for common programming constructs, though the exact appearance may vary.
Example V9E Code
type GlobalType {
id string;
status string;
}
event globalEvent {
timestamp int32;
action string;
}
enum GlobalStatus {
ACTIVE;
INACTIVE;
}
group userManagement {
group permissions {
type Permission {
level int32;
scope string;
}
event permissionChanged {
userId string;
permission userManagement.permissions.Permission;
}
}
type User {
name string;
email string;
role string;
}
event userCreated {
userId string;
metadata string;
}
}
group contentManagement {
type Article {
title string;
content string;
author string;
}
event articlePublished {
articleId string;
publishDate int32;
}
Known Issues
(Optional: Add any known limitations or bugs here. For example, "Currently, only single-line comments starting with // are supported.")
Release Notes
0.0.1 (Initial Release)
Initial release with basic syntax highlighting for V9E language.