Merge branch 'master' into changed-ranges

This commit is contained in:
Max Brunsfeld 2016-10-16 21:10:25 -07:00
commit eed54d95e1
28 changed files with 218 additions and 208 deletions

View file

@ -1,8 +1,15 @@
#ifndef RUNTIME_LENGTH_H_
#define RUNTIME_LENGTH_H_
#include "tree_sitter/parser.h"
#include <stdlib.h>
#include <stdbool.h>
#include "tree_sitter/runtime.h"
typedef struct {
size_t bytes;
size_t chars;
TSPoint extent;
} TSLength;
static inline TSPoint ts_point_add(TSPoint a, TSPoint b) {
if (b.row > 0)