mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -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
|
|
@ -582,7 +582,7 @@
|
||||||
"revision": "40259f3c77ea856841a4e0c4c807705f3e4a2b65"
|
"revision": "40259f3c77ea856841a4e0c4c807705f3e4a2b65"
|
||||||
},
|
},
|
||||||
"wgsl_bevy": {
|
"wgsl_bevy": {
|
||||||
"revision": "7cd38d6895060b023353e04f7af099ec64add5d1"
|
"revision": "9e3273e64bdd3f74d1514674286838f9075ee9e4"
|
||||||
},
|
},
|
||||||
"wing": {
|
"wing": {
|
||||||
"revision": "23712eff9768576bdd852cb9b989a9cd44af014a"
|
"revision": "23712eff9768576bdd852cb9b989a9cd44af014a"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,22 @@
|
||||||
; inherits wgsl
|
; inherits wgsl
|
||||||
|
|
||||||
|
[
|
||||||
|
"virtual"
|
||||||
|
"override"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
"#import"
|
"#import"
|
||||||
"#define_import_path"
|
"#define_import_path"
|
||||||
|
"as"
|
||||||
] @include
|
] @include
|
||||||
|
|
||||||
"::" @punctuation.delimiter
|
"::" @punctuation.delimiter
|
||||||
|
|
||||||
|
(function_declaration
|
||||||
|
(import_path
|
||||||
|
((identifier) @function .)))
|
||||||
|
|
||||||
(import_path (identifier) @namespace (identifier))
|
(import_path (identifier) @namespace (identifier))
|
||||||
|
|
||||||
(struct_declaration
|
(struct_declaration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue