X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/blobdiff_plain/4a1d56285559545a56cb7c79a0ea1564f01e09e5..0e6205ebcb990fd57f5056c1cf5e9de1487be934:/bindings/node/binding.cc?ds=sidebyside 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