bridge-syntax-highlight
v0.8.0
Published
Syntax highlighting, real-time diagnostics, and hover information for the Bridge declarative dataflow language
Downloads
104
Readme
The Bridge Language — VS Code Extension
Full IDE support for The Bridge: a declarative dataflow language for GraphQL. Wire data between APIs and schema fields using .bridge files — no resolvers, no codegen, no plumbing.

Features
Language Server (LSP)
- Real-time diagnostics — syntax errors and semantic issues highlighted as you type
- Semantic validation — undeclared handles, unsatisfied
withdependencies, and unknown wire targets flagged immediately - Hover information — hover over any handle, dependency, or declaration to see its type and source
- Bridge hover: type/field name, handle count, wire count
- Tool hover: function name, deps, wires
- Define hover: subgraph details
- Const hover: name and raw value
- Error recovery — partial AST is built even on broken files, so diagnostics remain accurate while you're mid-edit
Syntax Highlighting
- Full syntax highlighting for
.bridgefiles (language version 1.5) - Block keyword highlighting:
version,const,tool,define,bridge - Wire operator colouring:
<-(pull),||(falsy-coalesce),??(nullish gate),catch(error boundary),:(pipe) force <handle>andforce <handle> catch nullkeyword highlighting- Distinct colours for GraphQL type/field targets in
bridgedeclarations - Tool handle and alias highlighting
- Built-in handle highlighting:
input,output,context - Constant assignment colouring:
.property = value - HTTP method constants:
GET,POST,PUT,DELETE,PATCH,HEAD,OPTIONS - Unquoted URL path values (e.g.
/search,/api/v1/forecast) - Array mapping syntax:
source[] as iter { … } on errorfallback declarations insidetoolblocks- String, number, boolean, and
nullliterals
Editor Integration
- Line comment toggling (
#) - Bracket matching for
{}and[] - Automatic language detection for
*.bridgefiles
Installation
Search for "The Bridge Language" in the VS Code Extensions panel, or install from the terminal:
code --install-extension stackables.bridge-syntax-highlightFiles named *.bridge are automatically detected.
Related
- The Bridge runtime —
@stackables/bridgeon npm - Language reference — full syntax documentation
Release Notes
See CHANGELOG.md.
