replace start and end with padding and size
This commit is contained in:
parent
a85b7fe3c4
commit
b0f6bac3ab
12 changed files with 119 additions and 65 deletions
|
|
@ -38,9 +38,9 @@ typedef struct TSLexer {
|
|||
TSLength token_end_position;
|
||||
TSLength token_start_position;
|
||||
|
||||
TSSourceInfo current_source_info;
|
||||
TSSourceInfo token_end_source_info;
|
||||
TSSourceInfo token_start_source_info;
|
||||
TSPoint current_point;
|
||||
TSPoint token_end_point;
|
||||
TSPoint token_start_point;
|
||||
|
||||
size_t lookahead_size;
|
||||
int32_t lookahead;
|
||||
|
|
|
|||
|
|
@ -38,13 +38,12 @@ typedef struct {
|
|||
typedef struct {
|
||||
size_t line;
|
||||
size_t column;
|
||||
} TSSourceInfo;
|
||||
} TSPoint;
|
||||
|
||||
typedef struct {
|
||||
const void *data;
|
||||
TSLength offset;
|
||||
TSSourceInfo start;
|
||||
TSSourceInfo end;
|
||||
TSPoint point;
|
||||
} TSNode;
|
||||
|
||||
typedef unsigned short TSSymbol;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue