tree-sitter-wgsl
tree-sitter-wgsl copied to clipboard
WebGPU Shading Language grammar for tree-sitter parser
Hi! This is my first time working with grammar files, this seems to work however. I moved the `@variable` rule higher than `@type` so that `@type` takes precedence over it....
The current spec uses `const` as a keyword for global constants. Closes #14.
Thanks for this grammar! I think there is currently no support for `const` definitions.
Hey, great work on this! Do you mind publishing `tree-sitter-wgsl` to crates.io for use in the Rust ecosystem? All you need to do this is rename `tree-sitter-wgsl` in the `Cargo.toml`...
The WGSL specification changed from using the `type` keyword to `alias` for specifying type aliases. https://github.com/gpuweb/gpuweb/issues/3738 [Current specification](https://gpuweb.github.io/gpuweb/wgsl/#type-aliases)
Hey! Fantastic project! I'm seeing a discrepancy in how `texture_2d` (should be the same for other suffixes) type declarations don't get their parameters parsed somehow compared to other types. If...
Hi, I'm trying to add wgsl for nvim. I already had it installed for rust mainly (treesitter is installed with packer) I tried to follow the readme, i also saw...
I had this simple piece of wgsl code, but I noticed the `VertexOutput` aside from the first one is getting highlighted as `@variable.wgsl` instead of `@type.wgsl`. Edit: it seems like...
I forgot to update the `files` field in the README.md manual install instructions to include the new `scanner.c` source file that was added in #7. Without it nvim-treesitter fails to...
Recently, I've had problems with the wgsl parser of tree-sitter. I tried uninstalling and reinstalling it, but I get this error: ``` nvim-treesitter[wgsl]: Error during compilation Undefined symbols for architecture...