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/python/tests/test_binding.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 bindings/python/tests/test_binding.py (limited to 'bindings/python/tests') diff --git a/bindings/python/tests/test_binding.py b/bindings/python/tests/test_binding.py new file mode 100644 index 0000000..9da0402 --- /dev/null +++ b/bindings/python/tests/test_binding.py @@ -0,0 +1,11 @@ +from unittest import TestCase + +import tree_sitter, tree_sitter_gsp + + +class TestLanguage(TestCase): + def test_can_load_grammar(self): + try: + tree_sitter.Language(tree_sitter_gsp.language()) + except Exception: + self.fail("Error loading Gsp grammar") -- cgit v1.2.3