Language support for DLiteScript.
- Syntax Highlighting
- Bracket Matching
- Comment Support
- String Features
- Language Configuration
- LSP Server
None. This extension works out of the box with VS Code.
This extension contributes the following settings:
dlitescript.lsp.enable: Enable/disable the DLiteScript Language Server Protocol (default: true)dlitescript.lsp.serverPath: Path to the DLiteScript Language Server executable (default: "dlitescript")dlitescript.lsp.serverArgs: Arguments to pass to the Language Server (default: ["lsp"])
dlitescript.restartServer: Restart the DLiteScript Language Serverdlitescript.toggleServer: Toggle the DLiteScript LSP server
// Variable declarations
var name string
var age number = 25
var message string = "Hello %s!"
// Assignments
name = "DLiteScript"
age = age + 1
// Function calls
printf("Hello %s\n", name)
printf("Age: %g\n", age)
// Block scoping
{
const localVar string = "scoped"
printf("Inside block: %s\n", localVar)
}
// Expressions with operators
var result number = 2 ** 3 + 4 * 5
var calculation number = (result - 10) / 2
- DLiteScript - Main language implementation
- tree-sitter-dlitescript - Grammar definition
- vscode-dlitescript - Source code
- nvim-dlitescript - NeoVim plugin