Rename to 'tree-sitter-bp'
All checks were successful
ci/woodpecker/push/check Pipeline was successful

This is really just to simplify my life and align with the Vim/NeoVim
filetype name.
This commit is contained in:
Bruno BELANYI 2024-04-10 15:30:57 +00:00
parent f6e1266493
commit ebb642cb14
12 changed files with 24 additions and 24 deletions

View file

@ -4,7 +4,7 @@
using namespace v8;
extern "C" TSLanguage * tree_sitter_blueprint();
extern "C" TSLanguage * tree_sitter_bp();
namespace {
@ -17,12 +17,12 @@ void Init(Local<Object> exports, Local<Object> module) {
Local<Function> constructor = Nan::GetFunction(tpl).ToLocalChecked();
Local<Object> instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked();
Nan::SetInternalFieldPointer(instance, 0, tree_sitter_blueprint());
Nan::SetInternalFieldPointer(instance, 0, tree_sitter_bp());
Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("blueprint").ToLocalChecked());
Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("bp").ToLocalChecked());
Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance);
}
NODE_MODULE(tree_sitter_blueprint_binding, Init)
NODE_MODULE(tree_sitter_bp_binding, Init)
} // namespace