From 291cb06fc2d578ac19c01ebda9b71f94733af0e8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 14 Sep 2024 18:30:12 +0200 Subject: Fix comment queries for Neovim --- bindings/node/binding_test.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bindings/node/binding_test.js (limited to 'bindings/node') diff --git a/bindings/node/binding_test.js b/bindings/node/binding_test.js new file mode 100644 index 0000000..afede30 --- /dev/null +++ b/bindings/node/binding_test.js @@ -0,0 +1,9 @@ +/// + +const assert = require("node:assert"); +const { test } = require("node:test"); + +test("can load grammar", () => { + const parser = new (require("tree-sitter"))(); + assert.doesNotThrow(() => parser.setLanguage(require("."))); +}); -- cgit v1.2.3