BL for VS Code
Syntax highlighting and editor support for Biscuit Language (BL), the simple imperative programming language with a C implementation and LLVM backend.
This extension is for biscuitlang/bl. It is not for Biscuit authorization policies.
Features
- Automatic language detection for
.bl source files
- Syntax highlighting based on BL's official Vim and Sublime syntax definitions
- Highlighting for directives, functions, types, control flow, literals, operators, templates, and comments
- Comment toggling, bracket matching, auto-closing, surrounding, and basic indentation
- Snippets for functions, structs, imports, loops, conditionals, and typed variables
Quick start
- Open this folder in VS Code.
- Install the extension locally with
code --install-extension bl-vscode-0.1.0.vsix after packaging, or use Developer: Install Extension from Location... from the Command Palette.
- Open a
.bl file. VS Code will select the Biscuit Language mode automatically.
This release is declarative: it provides editor support without requiring the BL compiler or a language server.
Example
#import "std/print"
HelloWorld :: struct {
hello: s32;
world: s32;
};
main :: fn () s32 {
message := "Hello, Biscuit!\\n";
loop i := 0; i < message.len; i += 1 {
print("%", message[i]);
}
return 0;
}
Development
The project has no runtime dependencies. Validate the manifest and contributed assets with:
npm test
The check verifies JSON files, BL contributions, referenced assets, and representative grammar patterns.
Scope
This release focuses on syntax-aware editing. Compiler diagnostics, completion, go-to-definition, formatting, and debugging integration can be added later through a BL-aware language server or compiler integration.
License
MIT