File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed
bindings/swift/TreeSitterTypeScript Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ node_modules
3
3
.node-version
4
4
target
5
5
build
6
+ /.build
6
7
* .log
7
8
Cargo.lock
8
9
package-lock.json
Original file line number Diff line number Diff line change
1
+ // swift-tools-version: 5.6
2
+ import PackageDescription
3
+
4
+ let package = Package (
5
+ name: " TreeSitterTypeScript " ,
6
+ platforms: [ . macOS( . v10_13) , . iOS( . v11) ] ,
7
+ products: [ . library( name: " TreeSitterTypeScript " , targets: [ " TreeSitterTypeScript " ] ) ] ,
8
+ targets: [
9
+ . target(
10
+ name: " TreeSitterTypeScript " ,
11
+ path: " . " ,
12
+ exclude: [
13
+ ] ,
14
+ sources: [
15
+ " typescript/src/parser.c " ,
16
+ " typescript/src/scanner.c " ,
17
+ " tsx/src/parser.c " ,
18
+ " tsx/src/scanner.c " ,
19
+ ] ,
20
+ resources: [
21
+ . copy( " queries " ) ,
22
+ ] ,
23
+ publicHeadersPath: " bindings/swift " ,
24
+ cSettings: [ . headerSearchPath( " typescript/src " ) ]
25
+ ) ,
26
+ ]
27
+ )
Original file line number Diff line number Diff line change
1
+ #ifndef TREE_SITTER_TYPESCRIPT_H_
2
+ #define TREE_SITTER_TYPESCRIPT_H_
3
+
4
+ typedef struct TSLanguage TSLanguage ;
5
+
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ extern TSLanguage * tree_sitter_typescript ();
11
+ extern TSLanguage * tree_sitter_tsx ();
12
+
13
+ #ifdef __cplusplus
14
+ }
15
+ #endif
16
+
17
+ #endif // TREE_SITTER_TYPESCRIPT_H_
You can’t perform that action at this time.
0 commit comments