mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 23:29:54 -06:00
Corrected all your language name references
This commit is contained in:
parent
9392139a9c
commit
073ab245c7
22 changed files with 42 additions and 176 deletions
|
|
@ -1,16 +0,0 @@
|
|||
#ifndef TREE_SITTER_YOUR_LANGUAGE_NAME_H_
|
||||
#define TREE_SITTER_YOUR_LANGUAGE_NAME_H_
|
||||
|
||||
typedef struct TSLanguage TSLanguage;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
const TSLanguage *tree_sitter_YOUR_LANGUAGE_NAME(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TREE_SITTER_YOUR_LANGUAGE_NAME_H_
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import XCTest
|
||||
import SwiftTreeSitter
|
||||
import TreeSitterYourLanguageName
|
||||
|
||||
final class TreeSitterYourLanguageNameTests: XCTestCase {
|
||||
func testCanLoadGrammar() throws {
|
||||
let parser = Parser()
|
||||
let language = Language(language: tree_sitter_your_language_name())
|
||||
XCTAssertNoThrow(try parser.setLanguage(language),
|
||||
"Error loading YourLanguageName grammar")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue