Cryo Language — VS Code Extension
Full support for the Cryo programming language (.cryo) in Visual Studio Code.
Features
🎨 Syntax Highlighting
Complete colorization of the entire language vocabulary:
- Keywords:
fn, if, else, while, for, switch, struct, enum, skill, try/catch, unsafe/safe, etc.
- Types:
int, number, string, bool, void, map, and user-defined types (uppercase)
- Numeric Literals: decimal, hexadecimal (
0xFF), binary (0b1010), octal (0o77), and underscores (1_000_000)
- Strings: single and double quotes with escape sequences
- Builtins:
print, assert, sqrt, pow, len, json_encode, json_decode, has, keys, skills, skill_get, etc.
- Pyro Builtins:
pyro_exec, pyro_env, pyro_args, pyro_time, etc.
- Foreign Blocks:
>C(...), >Go(...) with special delimiter colorization
- Operators: arithmetic, bitwise, logical, null-coalesce (
??), ternary (? :), and compound assignments (+=, <<=, etc.)
- Declarations: functions with
fn name(...) -> Type ={, structs, enums, skills
✂️ Snippets (40+)
Comprehensive code snippets for all language constructs with smart tab-stops:
| Prefix |
Description |
fn |
Function declaration |
fnv |
Void function declaration |
main |
Program template with header |
if / ife |
If and if/else blocks |
while / dowhile |
While and do-while loops |
for / foreach |
Classic for and for-each loops |
switch |
Switch/case/default block |
struct / new |
Struct declaration and initialization |
enum |
Enum declaration |
skill |
Native LLM skill declaration |
map |
Map declaration |
try / tryf |
Try/catch and try/catch/finally blocks |
arr |
Array declaration |
vint / vnum / vstr / vbool |
Typed variables |
vopt |
Optional variable (null-safety) |
const |
Constant declaration |
print / assert |
Print and assert calls |
jsonenc / jsondec |
JSON encoding/decoding |
fgo / fc |
Embedded Go/C foreign blocks |
unsafe / safe |
Security instrumentation control blocks |
pexec / ptime |
Pyro machine exec/time builtins |
skills |
Compiled skills introspection |
library |
External library import |
?? |
Null-coalesce operator |
🔧 Language Configuration
- Comment toggling (
Ctrl+/ for //, Ctrl+Shift+A for /* */)
- Auto-closing of parentheses, brackets, braces, and quotes
- Automatic indentation rules
- Bracket matching and folding markers
Compatibility
- VS Code 1.75+
- Designed to work beautifully with all standard color themes (uses standard TextMate scopes)
| |