diff --git a/bindings/node/binding.cc b/bindings/node/binding.cc index 1082348..7cab42c 100644 --- a/bindings/node/binding.cc +++ b/bindings/node/binding.cc @@ -19,7 +19,7 @@ void Init(Local exports, Local module) { Local instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked(); Nan::SetInternalFieldPointer(instance, 0, tree_sitter_glsl()); - Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("glsl").ToLocalChecked()); + Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("wgsl_bevy").ToLocalChecked()); Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance); } diff --git a/bindings/node/index.js b/bindings/node/index.js index c448613..4a02e5a 100644 --- a/bindings/node/index.js +++ b/bindings/node/index.js @@ -1,11 +1,11 @@ try { - module.exports = require("../../build/Release/tree_sitter_cuda_binding"); + module.exports = require("../../build/Release/tree_sitter_wgsl_bevy_binding"); } catch (error1) { if (error1.code !== 'MODULE_NOT_FOUND') { throw error1; } try { - module.exports = require("../../build/Debug/tree_sitter_cuda_binding"); + module.exports = require("../../build/Debug/tree_sitter_wgsl_bevy_binding"); } catch (error2) { if (error2.code !== 'MODULE_NOT_FOUND') { throw error2; diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index 4b7d95c..d712329 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -1,4 +1,4 @@ -//! This crate provides hlsl language support for the [tree-sitter][] parsing library. +//! This crate provides wgsl_bevy language support for the [tree-sitter][] parsing library. //! //! Typically, you will use the [language][language func] function to add this language to a //! tree-sitter [Parser][], and then use the parser to parse some code: @@ -6,7 +6,7 @@ //! ``` //! let code = ""; //! let mut parser = tree_sitter::Parser::new(); -//! parser.set_language(tree_sitter_hlsl::language()).expect("Error loading hlsl grammar"); +//! parser.set_language(tree_sitter_wgsl_bevy::language()).expect("Error loading wgsl_bevy grammar"); //! let tree = parser.parse(code, None).unwrap(); //! ``` //!