Lightweight Zed grammar extension that provides syntax highlighting for SLURM sbatch scripts using the tree-sitter-sbatch grammar.
- Syntax highlighting for
#SBATCHoptions and commented out#SBATCHlines. - Small, dependency-free extension configuration in
extension.toml. - Uses bash highlighting for the rest of the script
- Creates run icons for every bash line; not sure how to fix.
- Clone the repo and install as a dev extension in Zed.
Update the grammar in tree-sitter-sbatch and then run the following commands in the tree-sitter-sbatch directory:
tree-sitter generate
tree-sitter build --wasmThen copy the .wasm file to sbatch-zed/grammars/sbatch.wasm and remove the left over sbatch/ folder from last time.
