VS Code extension for Ashbringer syntax highlighting.
- TypeScript 100%
| syntaxes | ||
| .gitignore | ||
| build.ts | ||
| CLAUDE.md | ||
| lang.md | ||
| language-configuration.json | ||
| LICENSE.md | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Ashbringer VS Code Extension
Syntax highlighting and language support for the Ashbringer programming language.
Features
- Comprehensive syntax highlighting for all Ashbringer language constructs
- Smart indentation rules for blocks and control structures
- Comment toggling support (line and block comments)
- Bracket matching and auto-closing pairs
Supported Language Features
Core Syntax
- Variables, constants, and type annotations
- Function definitions and method syntax
- Struct, union, and enum declarations
- Generic types and functions
- Error handling with
ortypes and?operator
Control Flow
if/then/else/elseif/endconditionalsfor,whileloops with rangesswitchpattern matching- Labeled loops with
@syntax
Types
- Primitive types:
i8,i16,i32,i64,u8,u16,u32,u64,int,uint - Float types:
f8,f16,f32,f64with GPU semantics - SIMD vector types:
vec2f32,vec4f32, etc. - Composite types: arrays, slices, maps, pointers
Advanced Features
- Compile-time conditionals with
when - Attributes like
#[test],#[inline],#[no_context] - Intrinsics with
@prefix - Memory management with
deferand context system - Coroutines and iterators
String and Numeric Literals
- Regular strings with escape sequences
- Raw strings with backticks
- Multi-line strings
- Hex (
0xFF), binary (0b1010), and readable numbers (1_000_000) - Float literals with precision suffixes (
1.5h,0.5q)
Usage
- Install the extension in VS Code
- Open any
.afile to see syntax highlighting - The extension automatically activates for Ashbringer files
Development
This extension is built with Bun and uses TextMate grammar for syntax highlighting.
Building from Source
# Install dependencies
bun install
# Build the extension
bun run build
# Package for distribution
bun run package
# Run in VS Code development host
bun run dev
Language Specification
See lang.md for the complete Ashbringer language specification.