Add VSCode syntax highlighting extension for Flux

Adds the vscode-flux extension with TextMate grammar covering keywords,
types, literals, operators, comments, and function/struct name highlighting.
Supports .flux and .flx file extensions.
This commit is contained in:
2026-03-10 14:42:46 +01:00
parent 73e36fac71
commit 0e08640f59
3 changed files with 278 additions and 0 deletions

34
vscode-flux/package.json Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "flux-lang",
"displayName": "Flux",
"description": "Syntax highlighting for the Flux programming language — a simple, fast systems language in the spirit of C and Rust.",
"version": "0.1.0",
"publisher": "flux-lang",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [
{
"id": "flux",
"aliases": ["Flux", "flux"],
"extensions": [".flux", ".flx"],
"configuration": "./language-configuration.json",
"icon": {
"light": "./icons/flux-light.png",
"dark": "./icons/flux-dark.png"
}
}
],
"grammars": [
{
"language": "flux",
"scopeName": "source.flux",
"path": "./syntaxes/flux.tmLanguage.json"
}
]
}
}