aboutsummaryrefslogtreecommitdiff
path: root/src/tree_sitter/parser.c
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-06-03 21:33:34 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-06-03 21:33:34 +0200
commit6b949211a06e21af67bf4cb3a20c6f87c932ef2a (patch)
tree71ce622f361f96da0d565932da08e621a67187a2 /src/tree_sitter/parser.c
parent6a93077475d298f46ac19c8030ed5b4a723685dc (diff)
downloadrneovim-6b949211a06e21af67bf4cb3a20c6f87c932ef2a.tar.gz
rneovim-6b949211a06e21af67bf4cb3a20c6f87c932ef2a.tar.bz2
rneovim-6b949211a06e21af67bf4cb3a20c6f87c932ef2a.zip
treesitter: update runtime
Update to 81d533d2d1b580fdb507accabc91ceddffb5b6f0.
Diffstat (limited to 'src/tree_sitter/parser.c')
-rw-r--r--src/tree_sitter/parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tree_sitter/parser.c b/src/tree_sitter/parser.c
index 19add152f1..dd222cd3c4 100644
--- a/src/tree_sitter/parser.c
+++ b/src/tree_sitter/parser.c
@@ -101,9 +101,10 @@ typedef struct {
static const char *ts_string_input_read(
void *_self,
uint32_t byte,
- TSPoint _,
+ TSPoint pt,
uint32_t *length
) {
+ (void)pt;
TSStringInput *self = (TSStringInput *)_self;
if (byte >= self->length) {
*length = 0;
@@ -210,6 +211,7 @@ static ErrorComparison ts_parser__compare_versions(
ErrorStatus a,
ErrorStatus b
) {
+ (void)self;
if (!a.is_in_error && b.is_in_error) {
if (a.cost < b.cost) {
return ErrorComparisonTakeLeft;