using namespace v8;
-extern "C" TSLanguage * tree_sitter_apinotation();
+extern "C" TSLanguage * tree_sitter_api_notation();
namespace {
Local<Function> constructor = Nan::GetFunction(tpl).ToLocalChecked();
Local<Object> 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