Skip to content

Commit 88ddfe1

Browse files
committed
⬆️ tree-sitter-cli
1 parent 589affd commit 88ddfe1

File tree

6 files changed

+2479
-2498
lines changed

6 files changed

+2479
-2498
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"nan": "^2.8.0"
1414
},
1515
"devDependencies": {
16-
"tree-sitter-cli": "^0.15.6"
16+
"tree-sitter-cli": "^0.15.14"
1717
},
1818
"scripts": {
1919
"test": "tree-sitter test && script/parse-examples",

src/binding.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ namespace {
1010

1111
NAN_METHOD(New) {}
1212

13-
void Init(Handle<Object> exports, Handle<Object> module) {
13+
void Init(Local<Object> exports, Local<Object> module) {
1414
Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(New);
1515
tpl->SetClassName(Nan::New("Language").ToLocalChecked());
1616
tpl->InstanceTemplate()->SetInternalFieldCount(1);
1717

18-
Local<Function> constructor = tpl->GetFunction();
18+
Local<Function> constructor = Nan::GetFunction(tpl).ToLocalChecked();
1919
Local<Object> instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked();
2020
Nan::SetInternalFieldPointer(instance, 0, tree_sitter_rust());
2121

22-
instance->Set(Nan::New("name").ToLocalChecked(), Nan::New("rust").ToLocalChecked());
23-
module->Set(Nan::New("exports").ToLocalChecked(), instance);
22+
Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("rust").ToLocalChecked());
23+
Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance);
2424
}
2525

2626
NODE_MODULE(tree_sitter_rust_binding, Init)

src/grammar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@
743743
},
744744
{
745745
"type": "PATTERN",
746-
"value": "[/_\\-=->,;:::!=?.@*=/='&=#%=^=+<>|~]+"
746+
"value": "[\\/_\\-=->,;:::!=?.@*=\\/='&=#%=^=+<>|~]+"
747747
},
748748
{
749749
"type": "STRING",

0 commit comments

Comments
 (0)