X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/blobdiff_plain/dc87cd894bad9ad0202dcd4a89e7d0af47c53fc9..39b375df57e4dac9c2003061fb9674b306834021:/bindings/node/binding.cc diff --git a/bindings/node/binding.cc b/bindings/node/binding.cc index 54f34ac..ffae1ee 100644 --- a/bindings/node/binding.cc +++ b/bindings/node/binding.cc @@ -4,7 +4,7 @@ using namespace v8; -extern "C" TSLanguage * tree_sitter_apinotation(); +extern "C" TSLanguage * tree_sitter_api_notation(); namespace { @@ -17,12 +17,12 @@ void Init(Local exports, Local module) { Local constructor = Nan::GetFunction(tpl).ToLocalChecked(); Local instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked(); - Nan::SetInternalFieldPointer(instance, 0, tree_sitter_apinotation()); + Nan::SetInternalFieldPointer(instance, 0, tree_sitter_api_notation()); - Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("apinotation").ToLocalChecked()); + Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("api_notation").ToLocalChecked()); Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance); } -NODE_MODULE(tree_sitter_apinotation_binding, Init) +NODE_MODULE(tree_sitter_api_notation_binding, Init) } // namespace