]> git.r.bdr.sh - rbdr/tree-sitter-api-notation/blobdiff - bindings/node/binding.cc
Update name
[rbdr/tree-sitter-api-notation] / bindings / node / binding.cc
index 54f34ac0a892f083d7b69ce554676b013f51730c..ffae1eebaef2600e7629b25a8b31bca33f225fe2 100644 (file)
@@ -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<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_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