mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
highlights(wgsl_bevy): add support for naga_oil features
Bevy has switched to https://github.com/bevyengine/naga_oil which allows new syntax constructs.
This commit is contained in:
parent
74a7da4e4b
commit
4920a4e732
2 changed files with 12 additions and 1 deletions
|
|
@ -1,11 +1,22 @@
|
|||
; inherits wgsl
|
||||
|
||||
[
|
||||
"virtual"
|
||||
"override"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"#import"
|
||||
"#define_import_path"
|
||||
"as"
|
||||
] @include
|
||||
|
||||
"::" @punctuation.delimiter
|
||||
|
||||
(function_declaration
|
||||
(import_path
|
||||
((identifier) @function .)))
|
||||
|
||||
(import_path (identifier) @namespace (identifier))
|
||||
|
||||
(struct_declaration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue