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/swift/TreeSitterGspTests/TreeSitterGspTests.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift (limited to 'bindings/swift/TreeSitterGspTests') diff --git a/bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift b/bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift new file mode 100644 index 0000000..df7bc99 --- /dev/null +++ b/bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift @@ -0,0 +1,12 @@ +import XCTest +import SwiftTreeSitter +import TreeSitterGsp + +final class TreeSitterGspTests: XCTestCase { + func testCanLoadGrammar() throws { + let parser = Parser() + let language = Language(language: tree_sitter_gsp()) + XCTAssertNoThrow(try parser.setLanguage(language), + "Error loading Gsp grammar") + } +} -- cgit v1.2.3