VS Code extension for Ashbringer syntax highlighting.
  • TypeScript 100%
Find a file
2026-02-11 10:03:09 -06:00
syntaxes Fix spaces to tabs, correct packaging warnings 2026-02-11 10:03:09 -06:00
.gitignore First commit 2026-02-10 21:49:57 -06:00
build.ts Fix spaces to tabs, correct packaging warnings 2026-02-11 10:03:09 -06:00
CLAUDE.md First commit 2026-02-10 21:49:57 -06:00
lang.md First commit 2026-02-10 21:49:57 -06:00
language-configuration.json Fix spaces to tabs, correct packaging warnings 2026-02-11 10:03:09 -06:00
LICENSE.md Fix spaces to tabs, correct packaging warnings 2026-02-11 10:03:09 -06:00
package.json Fix spaces to tabs, correct packaging warnings 2026-02-11 10:03:09 -06:00
README.md First commit 2026-02-10 21:49:57 -06:00
tsconfig.json Fix spaces to tabs, correct packaging warnings 2026-02-11 10:03:09 -06:00

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 or types and ? operator

Control Flow

  • if/then/else/elseif/end conditionals
  • for, while loops with ranges
  • switch pattern matching
  • Labeled loops with @ syntax

Types

  • Primitive types: i8, i16, i32, i64, u8, u16, u32, u64, int, uint
  • Float types: f8, f16, f32, f64 with 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 defer and 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

  1. Install the extension in VS Code
  2. Open any .a file to see syntax highlighting
  3. 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.