diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2023-07-25 21:30:41 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-07-25 22:22:35 +0200 |
| commit | 4920a4e732d16dd1270d2bb8744f6d8371e3788d (patch) | |
| tree | 7e6bce4051cb9b417ca2a407fa5ed7fb236d111d /queries | |
| parent | feat(comment): highlight more comment tags (diff) | |
| download | nvim-treesitter-4920a4e732d16dd1270d2bb8744f6d8371e3788d.tar nvim-treesitter-4920a4e732d16dd1270d2bb8744f6d8371e3788d.tar.gz nvim-treesitter-4920a4e732d16dd1270d2bb8744f6d8371e3788d.tar.bz2 nvim-treesitter-4920a4e732d16dd1270d2bb8744f6d8371e3788d.tar.lz nvim-treesitter-4920a4e732d16dd1270d2bb8744f6d8371e3788d.tar.xz nvim-treesitter-4920a4e732d16dd1270d2bb8744f6d8371e3788d.tar.zst nvim-treesitter-4920a4e732d16dd1270d2bb8744f6d8371e3788d.zip | |
highlights(wgsl_bevy): add support for naga_oil features
Bevy has switched to https://github.com/bevyengine/naga_oil which allows
new syntax constructs.
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/wgsl_bevy/highlights.scm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/queries/wgsl_bevy/highlights.scm b/queries/wgsl_bevy/highlights.scm index 2b33eff66..4ba25a935 100644 --- a/queries/wgsl_bevy/highlights.scm +++ b/queries/wgsl_bevy/highlights.scm @@ -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 |
