Merge branch 'master' into changed-ranges
This commit is contained in:
commit
eed54d95e1
28 changed files with 218 additions and 208 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue