A Visual Studio Code extension that provides syntax highlighting for FBORM (Firebird ORM) schema files. FBORM is a schema definition language similar to Prisma, designed for mapping TypeScript-like models to SQL database structures.
This extension provides comprehensive syntax highlighting for .fborm files including:
- Model definitions - Highlights
modelkeyword and model names - Field definitions - Syntax highlighting for field names, types, and optional markers
- Decorators - Full support for decorators like
@map,@pk,@relation,@default - Type system - Highlights primitive types (
string,number,boolean,date) and custom model types - Relationships - Special highlighting for relation syntax with
fieldsandreferences - Comments - Support for both single-line (
//) and block (/* */) comments - Operators and punctuation - Proper highlighting for optional operators (
?), arrays ([]), and other syntax elements
@map(USER)
model user {
id: number @map(id) @pk
name: string @map(name)
email?: string @map(email)
is_active: string @map(active) @default("S")
// Relationships
company_id: number @map(company)
company: company @relation(fields: [company_id], references: [id])
}
@map(COMPANY)
model company {
id: number @map(id) @pk
legal_name: string @map(legal_name)
active: string @map(active) @default("S")
users: user[]
}
modelkeyword for defining data models- Model names with proper entity highlighting
- Block structure with braces
@map()- Maps model/field names to database table/column names@pk- Marks primary key fields@default()- Sets default values@relation()- Defines relationships between models- And other standard decorators
- Primitive types:
string,number,boolean,date - SQL-style types:
String,Int,Float,DateTime - Custom model types for relationships
- Array notation with
[] - Optional fields with
?
- One-to-many relationships (
model[]) - Foreign key definitions
fieldsandreferencesarrays in@relationdecorators
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "FBORM Syntax Highlighter"
- Click Install
- Download the
.vsixfile from the releases page - Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click the "..." menu and select "Install from VSIX..."
- Select the downloaded
.vsixfile
- Create or open a file with the
.fbormextension - The syntax highlighting will be automatically applied
- If the highlighting doesn't activate, you can manually set the language:
- Press
Ctrl+Shift+P - Type "Change Language Mode"
- Select "FBORM" from the list
- Press
The extension includes language configuration for:
- Auto-closing brackets, braces, and parentheses
- Comment toggling with
Ctrl+/ - Proper indentation rules
- Word pattern recognition for better text navigation
- Visual Studio Code version 1.74.0 or higher
- No additional dependencies required
This extension does not add any VS Code settings. It works out of the box with .fborm files.
Currently no known issues. If you encounter any problems, please report them on the GitHub issues page.
Contributions are welcome! Please feel free to submit issues and pull requests on the GitHub repository.
Initial release of FBORM Syntax Highlighter
- Complete syntax highlighting for FBORM schema files
- Support for all major FBORM language constructs
- Model definitions with decorators
- Field types and relationships
- Comments and string literals
- Proper punctuation and operator highlighting
If you want to contribute to this extension:
- Clone the repository
- Open in VS Code
- Press
F5to launch a new Extension Development Host window - Create or open
.fbormfiles to test the syntax highlighting
- Install dependencies:
npm install - Package the extension:
vsce package - Publish to marketplace:
vsce publish
This extension is licensed under the MIT License.
Enjoy coding with FBORM!