Skip to content

Commit 5c22791

Browse files
committed
Do not ignore header files in C bindings
1 parent e2d9e6e commit 5c22791

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Cargo.lock
1818
/*.dylib
1919
/*.so*
2020
*.o
21-
/bindings/c/*.h
2221
/bindings/c/tree-sitter-*.pc
2322

2423
# Files generated by Swift

bindings/c/tree-sitter-elixir.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef TREE_SITTER_ELIXIR_H_
2+
#define TREE_SITTER_ELIXIR_H_
3+
4+
typedef struct TSLanguage TSLanguage;
5+
6+
#ifdef __cplusplus
7+
extern "C" {
8+
#endif
9+
10+
const TSLanguage *tree_sitter_elixir(void);
11+
12+
#ifdef __cplusplus
13+
}
14+
#endif
15+
16+
#endif // TREE_SITTER_ELIXIR_H_

0 commit comments

Comments
 (0)