From 4920a4e732d16dd1270d2bb8744f6d8371e3788d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Tue, 25 Jul 2023 21:30:41 +0200 Subject: highlights(wgsl_bevy): add support for naga_oil features Bevy has switched to https://github.com/bevyengine/naga_oil which allows new syntax constructs. --- lockfile.json | 2 +- queries/wgsl_bevy/highlights.scm | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lockfile.json b/lockfile.json index 86315420f..6bc192f2c 100644 --- a/lockfile.json +++ b/lockfile.json @@ -582,7 +582,7 @@ "revision": "40259f3c77ea856841a4e0c4c807705f3e4a2b65" }, "wgsl_bevy": { - "revision": "7cd38d6895060b023353e04f7af099ec64add5d1" + "revision": "9e3273e64bdd3f74d1514674286838f9075ee9e4" }, "wing": { "revision": "23712eff9768576bdd852cb9b989a9cd44af014a" 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 -- cgit v1.2.3-70-g09d2