diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-14 18:30:12 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-14 18:30:12 +0200 |
commit | 291cb06fc2d578ac19c01ebda9b71f94733af0e8 (patch) | |
tree | 42de2f30f49d1bf86239074abfa9578d560c7e1e /bindings/swift/TreeSitterGspTests | |
parent | 3a3ed761881ac220b517c30e1e4596ecead4f354 (diff) |
Fix comment queries for Neovim
Diffstat (limited to 'bindings/swift/TreeSitterGspTests')
-rw-r--r-- | bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift | 12 |
1 files changed, 12 insertions, 0 deletions
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") + } +} |