mirror of
https://github.com/kristoferssolo/tree-sitter-bruno.git
synced 2026-02-04 06:22:07 +00:00
Initial commit
This commit is contained in:
16
bindings/swift/TreeSitterBruno/bruno.h
generated
Normal file
16
bindings/swift/TreeSitterBruno/bruno.h
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef TREE_SITTER_BRUNO_H_
|
||||
#define TREE_SITTER_BRUNO_H_
|
||||
|
||||
typedef struct TSLanguage TSLanguage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
const TSLanguage *tree_sitter_bruno(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TREE_SITTER_BRUNO_H_
|
||||
12
bindings/swift/TreeSitterBrunoTests/TreeSitterBrunoTests.swift
generated
Normal file
12
bindings/swift/TreeSitterBrunoTests/TreeSitterBrunoTests.swift
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
import XCTest
|
||||
import SwiftTreeSitter
|
||||
import TreeSitterBruno
|
||||
|
||||
final class TreeSitterBrunoTests: XCTestCase {
|
||||
func testCanLoadGrammar() throws {
|
||||
let parser = Parser()
|
||||
let language = Language(language: tree_sitter_bruno())
|
||||
XCTAssertNoThrow(try parser.setLanguage(language),
|
||||
"Error loading Bruno grammar")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user