Skip to content

Commit

Permalink
build: fix grammar name in bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
theHamsta committed Apr 1, 2024
1 parent fd9f3cf commit 5cf2669
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bindings/node/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void Init(Local<Object> exports, Local<Object> module) {
Local<Object> 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);
}

Expand Down
4 changes: 2 additions & 2 deletions bindings/node/index.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions bindings/rust/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! 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:
//!
//! ```
//! 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();
//! ```
//!
Expand Down

0 comments on commit 5cf2669

Please # to comment.