Emacs tree-sitter support for the WebGPU Shading Language (WGSL) with additionnal support for Naga OIL (Bevy) extension naga-oil
providing syntax highlighting, indenting and navigation.
In order to use this mode, you must arrange that the [tree-sitter-bevy-wgsl grammar] (https://github.com/jatimix/tree-sitter-wgsl-bevy) is available.
- Emacs 29+
Follow section on installing grammars as part of a helpful article on getting started with tree-sitter in emacs that will likely be of use.
But as a rule of thumbs on linux-*:
- Build grammar lib
- sudo cp libtreesitter* /usr/local/lib
- sudo ldconfig
- Should work
Welcome.