Rename to 'tree-sitter-bp'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
f6e1266493
commit
ebb642cb14
12 changed files with 24 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue