1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Add some bridges and stuff.

This commit is contained in:
Rob Rix 2015-11-24 16:39:20 -05:00
parent 7879dccb63
commit cb08d79464
2 changed files with 8 additions and 0 deletions

5
app/bridge.c Normal file
View File

@ -0,0 +1,5 @@
#include "bridge.h"
void ts_document_root_node_p(TSDocument *document, TSNode *outNode) {
*outNode = ts_document_root_node(document);
}

3
app/bridge.h Normal file
View File

@ -0,0 +1,3 @@
#include "tree_sitter/runtime.h"
void ts_document_root_node_p(TSDocument *document, TSNode *outNode);